18.1.3 The Run-time Stack
- Used for functions
- Every call is a new activation record on stack
- Activation record contains:
- Parameters
- Return pointer
- Local variables
- Other machine-specific stuff
- Return from function decrements stack pointer
- Drawbacks:
- Local variables cease to exist when function exits
- Size of locals must be known at compile time
prev
|top
|next