Changes between Version 27 and Version 28 of Commentary/Compiler/StackAreas


Ignore:
Timestamp:
Jun 6, 2008 4:20:26 PM (7 years ago)
Author:
dias
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/StackAreas

    v27 v28  
    1414
    1515{{{
    16 x, y = f(a, b, c)
     16x, y = f(a, b, c);
    1717}}}
    1818
     
    8888
    8989A 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 important opportunities for optimization:
    90  * Stack slots can be reused
     90 * Stack slots can be reused by variables that are never on the stack at the same time
    9191 * If a function returns a variable on the stack, we might be able to use the return location as the variable's spill slot.
    9292