[project @ 2000-05-18 13:55:36 by sewardj]
Teach the NCG about the dereferencing and naming conventions to be used when compiling for a DLLised world. Some cleanups on the way too. The scheme is that * All CLabels which are in different DLLs from the current module will, via the renamer, already be such that labelDynamic returns True for them. * Redo the StixPrim/StixMacro stuff so that all references to symbols in the RTS are via CLabels. That means that the usual labelDynamic story can be used. * When a label is printed in PprMach, labelDynamic is consulted, to generate the __imp_ prefix if necessary. * In MachCode.stmt2Instrs, selectively ask derefDLL to walk trees before code generation and insert deferencing code around other-DLL symbols. * When generating Stix for SRTs, add 1 to other-DLL refs. * When generating static closures, insert a zero word before the _closure label.
Showing
- ghc/compiler/absCSyn/CLabel.lhs 41 additions, 3 deletionsghc/compiler/absCSyn/CLabel.lhs
- ghc/compiler/nativeGen/AbsCStixGen.lhs 24 additions, 7 deletionsghc/compiler/nativeGen/AbsCStixGen.lhs
- ghc/compiler/nativeGen/AsmCodeGen.lhs 2 additions, 2 deletionsghc/compiler/nativeGen/AsmCodeGen.lhs
- ghc/compiler/nativeGen/AsmRegAlloc.lhs 8 additions, 2 deletionsghc/compiler/nativeGen/AsmRegAlloc.lhs
- ghc/compiler/nativeGen/MachCode.lhs 54 additions, 26 deletionsghc/compiler/nativeGen/MachCode.lhs
- ghc/compiler/nativeGen/MachMisc.lhs 0 additions, 49 deletionsghc/compiler/nativeGen/MachMisc.lhs
- ghc/compiler/nativeGen/MachRegs.lhs 9 additions, 6 deletionsghc/compiler/nativeGen/MachRegs.lhs
- ghc/compiler/nativeGen/PprMach.lhs 8 additions, 5 deletionsghc/compiler/nativeGen/PprMach.lhs
- ghc/compiler/nativeGen/Stix.lhs 15 additions, 23 deletionsghc/compiler/nativeGen/Stix.lhs
- ghc/compiler/nativeGen/StixInteger.lhs 1 addition, 1 deletionghc/compiler/nativeGen/StixInteger.lhs
- ghc/compiler/nativeGen/StixMacro.lhs 28 additions, 23 deletionsghc/compiler/nativeGen/StixMacro.lhs
- ghc/compiler/nativeGen/StixPrim.lhs 16 additions, 22 deletionsghc/compiler/nativeGen/StixPrim.lhs
Loading
Please register or sign in to comment