Changes between Version 4 and Version 5 of Commentary/Compiler/IntegratedCodeGen


Ignore:
Timestamp:
Jun 4, 2008 3:51:29 PM (7 years ago)
Author:
dias
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/IntegratedCodeGen

    v4 v5  
    99 0. Stg -> Cmm: Converts to a flat representation of C--. 
    1010 0. Cmm -> ZGraphCmm: 
    11  * Converts the flat representation to a control-flow graph, with Cmm statements representing instructions in the basic blocks. 
    12  * Implements calling conventions for call, jump, and return instructions: all parameter passing is turned into data-movement instructions (register-to-register move, load, or store), and stack-pointer adjustments are inserted. 
    13  * How do we refer to locations on the stack when we haven't laid it out yet? The compiler names a stack slot using the idea of a "late compile-time constant," which is just a symbolic constant that will be replaced with an actual stack offset when the stack layout is chosen. 
    14  
     11  * Converts the flat representation to a control-flow graph, with Cmm statements representing instructions in the basic blocks. 
     12  * Implements calling conventions for call, jump, and return instructions: all parameter passing is turned into data-movement instructions (register-to-register move, load, or store), and stack-pointer adjustments are inserted. After this point, calls, returns, and jumps are just control-transfer instructions -- the parameter passing has been compiled away. 
     13  * How do we refer to locations on the stack when we haven't laid it out yet? The compiler names a stack slot using the idea of a "late compile-time constant," which is just a symbolic constant that will be replaced with an actual stack offset when the stack layout is chosen.