[GHC] #12356: StaticPointers support in GHCi

GHC ghc-devs at haskell.org
Fri Jul 1 21:36:05 UTC 2016


#12356: StaticPointers support in GHCi
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #12000            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by facundo.dominguez):

 When compiling a module, the FloatOut pass puts StaticPtrs in the top
 level and the tidy-core pass generates a C constructor function which
 inserts the top-level bindings in the static pointer table (SPT) when the
 module is loaded.

 In GHCi, I guess that bindings could be inserted in the SPT when they are
 linked. I don't know if the FloatOut pass is used when compiling code in
 GHCi, if not, floating the static pointer values to the top-level would
 need to be accomplished otherwise.

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


More information about the ghc-tickets mailing list