call by value/call by reference assembly

492 views Asked by At

I am currently learning about stack, stackframes and call by value/call by reference in assembly. The one thing, I dont understand is, what are the advantages of passing a value by reference, because how i understand it, the adresses of the values are also pushed on stack between two stackframes, similar two call by value, where a copy of the value gets pushed on the stack. Am I missing something or can someone pls explain the differnece to me with an short example? Thanks! (btw sry for the bad english)

0

There are 0 answers