Changes between Version 13 and Version 14 of Commentary/Compiler/Backends/NCG
- Timestamp:
- Nov 29, 2017 7:57:58 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Commentary/Compiler/Backends/NCG
v13 v14 16 16 After GHC has produced [wiki:Commentary/Compiler/CmmType Cmm] (use -ddump-cmm or -ddump-opt-cmm to view), the Native Code Generator (NCG) transforms Cmm into architecture-specific assembly code. The NCG is located in [[GhcFile(compiler/nativeGen)]] and is separated into eight modules: 17 17 18 * [[GhcFile(compiler/nativeGen/AsmCodeGen. lhs)]][[BR]]19 top-level module for the NCG, imported by [[GhcFile(compiler/main/CodeOutput. lhs)]]; also defines the Monad for optimising generic Cmm code, {{{CmmOptM}}}[[BR]][[BR]]18 * [[GhcFile(compiler/nativeGen/AsmCodeGen.hs)]][[BR]] 19 top-level module for the NCG, imported by [[GhcFile(compiler/main/CodeOutput.hs)]]; also defines the Monad for optimising generic Cmm code, {{{CmmOptM}}}[[BR]][[BR]] 20 20 * [[GhcFile(compiler/nativeGen/MachCodeGen.hs)]][[BR]] 21 21 generates architecture-specific instructions (a Haskell-representation of assembler) from Cmm code[[BR]][[BR]]