#3252: having to call hs_add_root(__stginit_Foo) is a bit of a pain
---------------------------------+------------------------------------------
    Reporter:  duncan            |        Owner:                  
        Type:  feature request   |       Status:  new             
    Priority:  normal            |    Milestone:                  
   Component:  Compiler (FFI)    |      Version:  6.10.2          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown

Comment:

 Generating constructor functions in Haskell modules would be a bit tricky,
 because we'd have to generate code that has the C calling convention, and
 neither the NCG nor the mangler knows how to do that.

 Something along the lines of the last method (have the exported C
 functions check that the module they're in has been initialised) might be
 possible.  But we have to be careful not to add too much overhead to the
 call-in path.

 I'll think some more about this.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3252#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to