
Replying to [comment:29 erikd]:
At @rwbarton's suggestion added `NOINLINE` pragmas to `above_` and `beside_` functions in `compiler/utils/Pretty.hs` and now the assembler file for `compiler/cmm/PprC.hs` is 158390 lines.
That worked when building the stage1 compiler using the bootstrap compiler, but it fails again when build the stage2 compiler with the stage1 compiler. The assembler file for `compiler/cmm/PprC.hs` compiled with the stage1 compiler is 220293 lines. It looks like we have to support 32-bit loads from/stores to the stack too. Fortunately, we are looking at constant offset from the C stack
#7830: Error: operand out of range -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Installing GHC | Test Case: failed | Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by trommler): Replying to [comment:31 erikd]: pointer (r1) and the offsets are known at compilation time, so performance of the object code produced by GHC is not going to suffer much if at all. I could prepare a patch next week and verify on powerpc64. @erikd could you help out building the patch on your machine? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7830#comment:34 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler