Changes between Version 40 and Version 41 of Commentary/Compiler/StackAreas


Ignore:
Timestamp:
Jun 26, 2008 1:07:15 PM (6 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/StackAreas

    v40 v41  
    9595 
    9696=== Laying out the stack === 
     97 
     98The business of the stack-layout pass is to construct a mapping (fixed across a single procedure) 
     99{{{ 
     100   Area |-> VirtualOffset 
     101}}} 
     102which assigns a virtual stack slot (i.e offset relative to the virtual frame pointer) to each `Area`.   '''Mutter about vfp'''. 
    97103 
    98104A naive approach to laying out the stack would be to give each variable its own stack slot for spilling, and allocate only the ends of the stack frame for parameter-passing areas. But this approach misses two opportunities for optimization: