#4387: Huge executables with GHC 7 ----------------------------------+----------------------------------------- Reporter: daniel.is.fischer | Owner: igloo Type: bug | Status: new Priority: highest | Milestone: 7.0.1 Component: Compiler | Version: 7.1 Keywords: executable size | Testcase: Blockedby: | Difficulty: Os: Linux | Blocking: Architecture: x86 | Failure: Other ----------------------------------+-----------------------------------------
Comment(by igloo): Hmm, with {{{ $ cat h.hs import SpecConstr main = return () }}} I get: {{{ $ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.3 $ ghc --make h -package ghc [1 of 1] Compiling Main ( h.hs, h.o ) Linking h ... $ nm h | grep ghc | wc -l 59049 $ ls -lh h -rwxr-xr-x 1 ian ian 32M Oct 15 13:29 h $ strip h $ ls -lh h -rwxr-xr-x 1 ian ian 21M Oct 15 13:29 h }}} and: {{{ $ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.1.20101014 $ ghc --make h -package ghc [1 of 1] Compiling Main ( h.hs, h.o ) Linking h ... $ nm h | grep ghc | wc -l 66744 $ ls -lh h -rwxr-xr-x 1 ian ian 45M Oct 15 13:30 h $ strip h $ ls -lh h -rwxr-xr-x 1 ian ian 29M Oct 15 13:30 h }}} i.e. it looks like it never worked for me. What does {{{ ar t `ghc --print-libdir`/ghc-6.12.3/libHSghc-6.12.3.a | wc -l }}} say for you? -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4387#comment:21> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs