#3571: Bizzarely bloated binaries
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: low | Milestone: 7.0.1
Component: Compiler | Version: 6.10.4
Keywords: | Testcase:
Blockedby: | Difficulty: Unknown
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by michalt):
* cc: michal.terep...@… (added)
Comment:
I don't know much about PE format, but if strip fixes the problem, then
isn't
the whole thing just about discarding symbols/debug info from an
executable? As
for the size reduction by the "trimming" mentioned in the description, I
get
very similar results with simply stripping the executable..
For "hello world":
{{{
> ll Test
-rwxr-x--- 1 m m 975K Dec 12 18:50 Test*
> strip Test
> ll Test
-rwxr-x--- 1 m m 649K Dec 12 18:51 Test*
}}}
So the difference is 326KB. For xmonad:
{{{
> ll xmonad-x86_64-linux
-rwxr-x--- 1 m m 6.4M Dec 12 18:49 xmonad-x86_64-linux*
> strip xmonad-x86_64-linux
> ll xmonad-x86_64-linux
-rwxr-x--- 1 m m 3.6M Dec 12 18:51 xmonad-x86_64-linux*
}}}
So for larger programs the size is almost halved.
Btw. cabal strips executables by default.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3571#comment:7>
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