On 1999-Dec-16 19:55:35 +1100, Steve O'Hara-Smith <[EMAIL PROTECTED]> wrote:
>On 15-Dec-99 Oliver Fromme wrote:
>> Alexander Langer wrote in list.freebsd-current:
>> > gunzip has approx 106 kb, but you save about 50% per executeable.
>>
>> -r-xr-xr-x 1 root wheel 4648 Jan 28 1999 /usr/bin/minigzip
>
> It requires the 50Kb libz.so.2 though and some of libc.
% cc -static -O -o minigzip minigzip.c -lz
% size minigzip
text data bss dec hex filename
75299 8524 2004 85827 14f43 minigzip
% ls -l minigzip
-rwxr-xr-x 1 jeremyp inplat 96509 Dec 17 08:08 minigzip
%
Or, ignoring the libc code (which is indicative of the effect of
building it into a crunched executable):
% cc -O -o minigzip minigzip.c /usr/lib/libz.a
% ls -l minigzip
-rwxr-xr-x 1 jeremyp inplat 48523 Dec 17 08:08 minigzip
% size minigzip
text data bss dec hex filename
37756 4848 272 42876 a77c minigzip
%
Peter
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message