[GHC] #8590: Reduce code size of CAFs

GHC ghc-devs at haskell.org
Wed Dec 4 08:54:37 UTC 2013


#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 simonpj):

 Looks great to me.  Could you bear to write a `Note [How CAFs are
 compiled]` in `StgCmmBind` (and perhaps cross-refer from `Storage.c`) so
 that there is a little writeup of the logic involved.  Or maybe the Note
 belongs somewhere else.  It would be good to cover (briefly)
  * What code we generate for CAFs
  * How and why they are reverted
  * What the CAF list is and why it is needed.

 Alternatively, elaborate this page [wiki:Commentary/Rts/Storage/GC/CAFs],
 and cross-refer to it from the code.

 While it's all fresh in your mind.  Doubtless you had to infer lots of
 stuff from the code!

 Simon

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8590#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list