I have a purely theoretical question about the various methods of passing arguments to a function.
There are two i am interested in:
+ call by value-returned (aka value-result).
+ call by result.
i think value-returned does the following:
+ make a local copy of the value the passed pointer points to.
+ work with this value locally.
+ upon function termination, store the value back at its original address.
Both calling methods are described in the art of assembly language but the difference between the two is very vaguely explained.
anybody know the difference?
There are two i am interested in:
+ call by value-returned (aka value-result).
+ call by result.
i think value-returned does the following:
+ make a local copy of the value the passed pointer points to.
+ work with this value locally.
+ upon function termination, store the value back at its original address.
Both calling methods are described in the art of assembly language but the difference between the two is very vaguely explained.
anybody know the difference?