Accessing and Storing Variables
Instructions to load and store local variables:
Assigning indices (called slots) to local variables:
- in which compiler phase?
- maps variable ocurrence, not name (part of symbol table)
Translation Rules for Local Variables
If is local variable and we translate expression, then
For assignment to local variable , we have