Accessing and Storing Variables
Local Variables
Instructions to load and store local variables:
Assigning indices (called slots) to local variables:
- in which compiler phase?
- how?
Function
- 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