Procedure Call (Stack) Frame
Procedures use a frame in the stack to:
- Hold values passed to procedures as arguments.
- Save registers that a procedure may modify, but which the procedure’s caller does not want changed.
- To provide space for local variables. (variabes with local scope)
-
- To evaluate complex expressions.