First page Back Continue Last page Overview Graphics
Stack Pointers and Frame Pointers
The stack pointer points to the top of the stack.
The frame pointer points to the return address of the subroutine.
- Local variables require negative offset from the frame pointer (because they were placed on the stack after the return address).
- Passed parameters require a positive offset because they were placed on the stack before the subroutine call.