| 32 | | |
| | 32 | When going through this outline, it is helpful to have the [http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/HscMain Compiler Pipeline] explanation available as well as the explanation of the source code tree (that includes nested explanations of important directories and files) available [http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree here]. |
| | 33 | |
| | 34 | Addition of Types for use by Haskell |
| | 35 | ./compiler/types/TyCon.lhs |
| | 36 | - TyCons represent type constructors. There are @data declarations, @type synonyms, @newtypes and class declarations (@class). We will need to modify this to add a proper type constructor. |
| | 37 | - Prelude uses this type constructor in ./compiler/prelude/TysPrim.lhs |
| | 38 | |
| | 39 | Modifications to add primtype / primop to Prelude |
| | 40 | ./compiler/prelude/PrelNames.lhs |
| | 41 | ./compiler/prelude/TysPrim.lhs |
| | 42 | ./compiler/prelude/primops.txt.pp |
| | 43 | - Defines the primops that are associated with the types that are previously defined |
| | 44 | |
| | 45 | |
| | 46 | ./compiler/codeGen/CgCallConv.hs |
| | 47 | ./compiler/codeGen/CgPrimOp.hs |
| | 48 | ./compiler/codeGen/CgUtils.hs |
| | 49 | ./compiler/codeGen/SMRep.lhs |
| | 50 | ./compiler/codeGen/StgCmmLayout.hs |
| | 51 | ./compiler/codeGen/StgCmmPrim.hs |
| | 52 | |
| | 53 | Modifications to the STG Code Generation |
| | 54 | ./includes/stg/MachRegs.h |
| | 55 | ./includes/stg/Regs.h |
| | 56 | ./includes/stg/Types.h |
| | 57 | |
| | 58 | Modifications to the Cmm stage |
| | 59 | |
| | 60 | Modifications to the LLVM code generator |
| | 61 | |
| | 62 | ./compiler/cmm/CmmExpr.hs |
| | 63 | ./compiler/cmm/CmmType.hs |
| | 64 | ./compiler/cmm/CmmUtils.hs |
| | 65 | ./compiler/cmm/OldCmm.hs |
| | 66 | ./compiler/cmm/StackColor.hs |
| | 67 | |
| | 68 | ./compiler/nativeGen/Size.hs |
| | 69 | ./compiler/nativeGen/X86/CodeGen.hs |
| | 70 | ./compiler/nativeGen/X86/Ppr.hs |
| | 71 | |
| | 72 | |
| | 73 | |
| | 74 | ./includes/HaskellConstants.hs |
| | 75 | ./includes/mkDerivedConstants.c |
| | 76 | |
| | 77 | ./includes/rts/storage/FunTypes.h |
| | 78 | |
| | 79 | |
| | 80 | ./utils/genapply/GenApply.hs |
| | 81 | ./utils/genprimopcode/Main.hs |