Changes between Version 1 and Version 2 of Commentary/Compiler/StackAreas


Ignore:
Timestamp:
May 16, 2008 5:40:14 PM (6 years ago)
Author:
dias
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/StackAreas

    v1 v2  
    33 
    44The current conversion from STG to CMM leaves stack management completely implicit. The consequence is that a number of things must happen all at once: 
    5 * The stack is laid out. 
    6 * CopyIn and CopyOut nodes are converted to the appropriate moves, loads and stores, as required by the calling conventions. 
    7 * The stack pointer is adjusted to conventional locations before and after function calls. 
    8 * The return address is pushed on the stack at call sites. 
     5 * The stack is laid out. 
     6 * !CopyIn and !CopyOut nodes are converted to the appropriate moves, loads and stores, as required by the calling conventions. 
     7 * The stack pointer is adjusted to conventional locations before and after function calls. 
     8 * The return address is pushed on the stack at call sites. 
    99And of course, none of the argument-passing or stack-adjusting instructions are available during optimization, before the stack layout is fixed. 
    1010