[GHC] #4387: Huge executables with GHC 7

GHC cvs-ghc at haskell.org
Fri Oct 15 11:59:28 EDT 2010


#4387: Huge executables with GHC 7
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |        Owner:  igloo
        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):

 I thought that `collect2` automates this. IIRC, it ploughs through all
 object files looking for specific constructor symbols and then generates
 and links in an additional module which calls those symbols and is, in
 turn, called at start up. Wouldn't it be enough to simply make sure that
 module initialiser symbols look like constructors and link with
 `collect2`?

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


More information about the Glasgow-haskell-bugs mailing list