[GHC] #11285: Split objects makes static linking really slow

GHC ghc-devs at haskell.org
Sat Dec 26 18:08:30 UTC 2015


#11285: Split objects makes static linking really slow
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  high              |            Milestone:
       Component:  Compiler          |              Version:  7.11
  (Linking)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by ezyang):

 olsner: It's not, unless we install both "slow to link" and "quick to
 link" versions of static libraries. As you mention, this might be helpful
 anyway for loading statically linked libraries to GHCi.

 I *believe* my experiments showed that `--gc-sections` didn't really cost
 you anything if you weren't using `-split-sections`. So it should be fine
 to continue to pass it. Disabling it didn't really help with link times
 anyway.

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


More information about the ghc-tickets mailing list