Changes between Version 15 and Version 16 of Commentary/Compiler/CodeGen
- Nov 2, 2007 10:24:52 AM (9 years ago)
v15 v16 3 3 = GHC Commentary: The Code Generator = 4 4 5 [[GhcFile(compiler/codeGen)]] 5 The 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 9 The code generator lives in [[GhcFile(compiler/codeGen)]] 10 11 12 == Storage manager representations == 6 13 7 14 See [wiki:Commentary/Rts/Storage The Storage Manager] for the [wiki:Commentary/Rts/Storage/Stack Layout of the stack]. 8 9 10 == Storage manager representations == 11 15 12 16 The 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?