First page Back Continue Last page Overview Graphics
Direction of stack growth depends on processor.
Values are placed on or removed from the stack using push and pull / pop instructions.
Reentrancy is needed if interrupts may result in nested calls to the same subroutine.
Passing parameters on the stack is useful for making subroutines reentrant.
Checking for stack overflow is important.
Local variables of a subroutine call are stored in the stack frame.