large binary footprint ?

HP Wei hp at rentec.com
Tue May 6 15:26:10 EDT 2008


hi Bulat, thanks for the speedy reply!

I tried the following two ways and got the same result:

  (1) in the shell,
      strip hello
  (2) ghc -optl-s -o hello -L../lib hello.hs

  They both result in a binary size of ~2.5MBytes,
  which is about 5 times what I expected (500kbytes).

  Have I had the 'incorrect impression' of 500kbytes ?

Thanks
hp



On Tue, 6 May 2008, Bulat Ziganshin wrote:

> Hello HP,
> 
> Tuesday, May 6, 2008, 11:00:59 PM, you wrote:
> 
> >   The resulting binary code size is 3.9 Mbytes
> >   I had the impression that it should be of the order
> >   of 500 Kbytes. How can I reach that number ?
> 
> strip executable. you can just add -optl-s to ghc cmdline
> 
> -- 
> Best regards,
>  Bulat                            mailto:Bulat.Ziganshin at gmail.com
> 
> 


More information about the Glasgow-haskell-users mailing list