[Haskell] ANNOUNCE: HNOP 0.1

Donald Bruce Stewart dons at cse.unsw.edu.au
Fri Jun 30 03:47:29 EDT 2006

> Incidentally, on my machine the compiled code is 2759360 bytes long 
> unstripped and 1491240 stripped.  One has to wonder what all those bytes 
> are doing.  I hope this doesn't sound petty; I love haskell and ghc, but 
> 2.8 meg for a no-op program seems a bit excessive.

Hmm. Sounds like you're using ghc on a machine with no split objects?
With split objs,
    $ du -hs dist/build/hnop/hnop
    192K    dist/build/hnop/hnop

Note the object is just:
    $ du -hs dist/build/hnop/hnop-tmp/Main.o
    4.0K    dist/build/hnop/hnop-tmp/Main.o

The rest is rts and the tiny bit of the prelude hnop uses.

On the mac, you can use a dynamically linked rts and base, and there
hnop would be around 5k, I suppose.

-- Don

More information about the Haskell mailing list