[Haskell-cafe] Reducing the executable output filesize with GHC (on Windows)

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Dec 22 18:12:44 EST 2007

Hello Peter,

Sunday, December 23, 2007, 1:12:05 AM, you wrote:
> How can I force the linker to exclude all the sections that are not
> referenced?

ghc ... -optl -s

> I thought it had to do something with -split-objs?

no, it's just `strip`

> I▓ve written a short consolemode program, but it compiles to 1.3MB.

you can use upx --lzma to further decrease EXE size

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list