big hello world binary on 32bit intel MacOS

Christian Maeder Christian.Maeder at
Wed Mar 9 14:06:00 CET 2011


compiling a simple putStrLn "Hello" program creates binaries of size:

ghc-6.12.3: 719K
ghc-7.0.1: 7,4M
ghc-7.0.2: 6,9M

"otool -L" for the ghc-7 binaries displays:
        /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current
version 7.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.1.4)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
version 1.0.0)

where /usr/lib/libgcc_s.1.dylib is not referenced for the ghc-6.12.3 binary.

I used:

Any explanations?

Cheers Christian

More information about the Glasgow-haskell-users mailing list