#4387: Huge executables with GHC 7
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |        Owner:       
        Type:  bug                |       Status:  new  
    Priority:  normal             |    Milestone:  7.0.1
   Component:  Compiler           |      Version:  7.1  
    Keywords:  executable size    |     Testcase:       
   Blockedby:                     |   Difficulty:       
          Os:  Linux              |     Blocking:       
Architecture:  x86                |      Failure:  Other
----------------------------------+-----------------------------------------

Comment(by rl):

 Replying to [comment:34 simonmar]:
 > Right, and we're already doing that for the foreign export initailisers.
 We could use this method for the profiling initialisers too, but it would
 mean compiling a C stub file with every Haskell module.  That may be the
 only way though.

 I'm probably being a bit dense but why do we need a separate C file? Can't
 we just have GHC generate the initialisers and put them in the same object
 file as the rest of the module?

 > I think this is a good plan.  In the long term we should fix the
 initialisers, but this gives us a short term workaround while we think
 about the best way to handle initialisers.

 Great! I think we only use `SpecConstrAnnotation`, defined in
 !SpecConstr.lhs, at the moment. It would be great if we could add ghc-
 annotations before the next release candidate.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4387#comment:35>
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