Changes between Version 6 and Version 7 of Commentary/Compiler/Backends/PprC


Ignore:
Timestamp:
May 7, 2011 5:54:02 PM (4 years ago)
Author:
igloo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/Backends/PprC

    v6 v7  
    66 
    77This phase takes [wiki:Commentary/Compiler/CmmType Cmm] and generates plain C code.  The C code generator is very simple these days, in fact it can almost be considered pretty-printing. 
    8  
    9 There are some slight subtleties: 
    10  
    11  * [wiki:Commentary/Rts/HeapObjects#InfoTables info tables], which are expressed in Cmm as being laid out before the entry code for a 
    12    closure, are compiled into separate top-level structures in the generated C, because C has no support for laying out data 
    13    next to functions.  The desired layout is reconstructed in the assembly file by the [wiki:Commentary/EvilMangler Evil Mangler], 
    14    or not if we're compiling unregisterised (see [wiki:Commentary/Rts/HeapObjects#TABLES_NEXT_TO_CODE TABLES_NEXT_TO_CODE]). 
    15  
    168 
    179== Header files ==