Allocation on a stack
Expression Evaluation
- Intermediate results stored on stack top (ST)
- Addresses implicitly allocated relative to ST
- Allocation and Deallocation implicit in the execution of the instructions forming the expression
Global variables
- Requirements known statically
- Addresses allocated relative to stack base (SB)
- Compiler keeps a record of addresses allocated, a counter