> At 09:37 PM 8/22/01 -0400, Sean wrote:
> > I just compiled the C hello world program under Linux 2.2.12 with
> >egcs-2.91.66 and got the following:
> >-rwxrwxr-x 1 spc spc 932131 Aug 22 21:32 hello
> > Okay, granted, I compiled it statically (if I compiled normally, it would
> >be 11,811 bytes in size 8-) but still, nearly a megabyte there!
Here's another datapoint on FreeBSD intel x86 gcc 2.95.3.
Stripped statically linked is ~44k, dynamic is ~2.8k not too bad.
I don't think that's as bad as the 45k non-executable word file
saying hello world. At least it's a runnable binary.
# file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically
linked, stripped
#ls -l hello
-rwxr-xr-x 1 pechter users 43908 Aug 23 07:48 hello
# file hello2
hello2: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked
(uses shared libs), stripped
#ls -l hello2
-rwxr-xr-x 1 pechter users 2816 Aug 23 07:51 hello2
Bill
--
Bill Gates is a Persian cat and a monocle away from being a
villain in a James Bond movie -- Dennis Miller
bpechter@shell.monmouth.com|pechter@pechter.dyndns.org