3 3 FunctionVisualization
3 3 FunctionVisualization
link
‘main’ is just another function
• See the values of a, b and res
link
An example of using a function sum
link
An example of using a function sum
link
An example of using a function sum
link
An example of using a function sum
Values of a & b is
copied into x & y
link
An example of using a function sum
‘r’ is computed.
link
An example of using a function sum
‘res’ is
populated.
link
Another example (nice visualization)
Main’s stack is
empty
In reality, the stack frame looks more like this
Arguments and
return address are
stored before EBP
(base pointer)
All variables
correspond to offset
from a memory
location