large binaries
Abraham Egnor
aegnor@antioch-college.edu
Thu, 18 Jul 2002 15:44:59 -0400 (EDT)
> > 1. hello_hs is probably statically linked. hello_c is probably
> > dynamically linked.
> >
>
> Right. The ldd command gives the dependencies (on Linux):
>
> awo@asterix:~> ldd hello
> libc.so.6 => /lib/libc.so.6 (0x40022000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
> If you compile hello.c as static binary, like
>
> gcc -static -o hello hello.c
>
> then the resulting exe is rather big, too ;-)
>
> awo@asterix:~> ls -l hello
> -rwxr-xr-x 1 awo users 1486299 Jul 18 21:40 hello
>
> So ghc isnt so bad, really :-)
Okay, that makes sense.
Is there some reason haskell binaries have to be statically linked? I
can't seem to find a way to make them otherwise, at least with ghc.
Abe