#8590: Reduce code size of CAFs -------------------------------------+------------------------------------ Reporter: parcs | Owner: parcs Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler (NCG) | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Patrick Palka <patrick@…>): In [changeset:"55c703b8fdb040c51bf8784beb3dc02332db417a/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="55c703b8fdb040c51bf8784beb3dc02332db417a" Move the allocation of CAF blackholes into 'newCAF' (#8590) We now do the allocation of the blackhole indirection closure inside the RTS procedure 'newCAF' instead of generating the allocation code inline in the closure body of each CAF. This slightly decreases code size in modules with a lot of CAFs. As a result of this change, for example, the size of DynFlags.o drops by ~60KB and HsExpr.o by ~100KB. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8590#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler