Changes between Version 44 and Version 45 of Commentary/Compiler/NewCodeGenPipeline


Ignore:
Timestamp:
Feb 1, 2014 3:54:50 PM (16 months ago)
Author:
jstolarek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/NewCodeGenPipeline

    v44 v45  
    77This page contains notes about the design of the new code generator. 
    88See also: [wiki:Commentary/Compiler/NewCodeGenModules overview of the module structure in the new code generator]. 
    9  
    10 == Overview ==  
    11  
    12 Code generation now has three stages: 
    13   1. Convert STG to Cmm, with implicit stack implicit, and native Cmm calls. 
    14   2. Optimise the Cmm, and CPS-convert it to have an explicit stack, and no native calls. 
    15      This part of the pipeline is stitched together in `cmm/CmmPipeline.hs`. 
    16   3. Feed the CPS-converted Cmm to the existing, unmodified native code generators. 
    17  
    18 Ultimately our plan is to expand the capability of the new pipeline so that it does native code generation too, and we can ultimately discard the existing code generators.  The design of this stage is here: [wiki:Commentary/Compiler/IntegratedCodeGen] 
    199 
    2010== The Cmm pipeline ==