Hi all, On Wed, Mar 05, 2014 at 02:49:07PM +0100, Troels Henriksen wrote: > FRIGN <d...@frign.de> writes: > > > Yes, that's a point. Go implements GC and other stuff in the binary, > > which blows its size up a lot. > > (I do not use Go myself, but in the Haskell world we have a similar > issue - my current project compiles to a statically linked 53MiB binary, > although this is admittedly with profiling support included.)
Maybe surprisingly, then: ~% cat > t.ml let () = print_string "hello world\n" ~% ocamlopt -o t t.ml ~% strip t ~% ls -lh t -rwxr-xr-x 1 xxxx users 124K Mar 12 16:48 t ~% ldd t linux-vdso.so.1 (0x00007fffbed70000) libm.so.6 => /usr/lib/libm.so.6 (0x00007fae08f33000) libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fae08d2f000) libc.so.6 => /usr/lib/libc.so.6 (0x00007fae08987000) /lib64/ld-linux-x86-64.so.2 (0x00007fae09234000) ~% ./t hello world ~% It does not suck too hard! Does it? - q