Changes between Version 15 and Version 16 of Commentary/Compiler/CodeGen


Ignore:
Timestamp:
Nov 2, 2007 10:24:52 AM (6 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/CodeGen

    v15 v16  
    33= GHC Commentary: The Code Generator = 
    44 
    5 [[GhcFile(compiler/codeGen)]] 
     5The material below describes the old (and still current) code generator.  New stuff is here: 
     6  * [wiki:Commentary/Compiler/CPS Michael Adams CPS conversion] 
     7  * [wiki:Commentary/Compiler/NewCodeGen New code generator] 
     8 
     9The code generator lives in [[GhcFile(compiler/codeGen)]] 
     10 
     11 
     12== Storage manager representations == 
    613 
    714See [wiki:Commentary/Rts/Storage The Storage Manager] for the [wiki:Commentary/Rts/Storage/Stack Layout of the stack]. 
    8  
    9  
    10 == Storage manager representations == 
    1115 
    1216The code generator needs to know the layout of heap objects, because it generates code that accesses and constructs those heap objects.  The runtime also needs to know about the layout of heap objects, because it contains the garbage collector.  How can we share the definition of storage layout such that the code generator and the runtime both have access to it, and so that we don't have to keep two independent definitions in sync?