From: Caleb Epstein (cae@davidge.com)
Date: 10/28/92


From: cae@davidge.com (Caleb Epstein)
Subject: Re: GCC compiling options
Date: Wed, 28 Oct 1992 17:04:52 GMT

cwtong@cuse1.se.cuhk.hk (Tong Chi Wa(GA)) writes:
>Hi,
> Please advise what should be the options to be specified in
>compiling with GCC when one wants to get a minimum sized executable.
>
> I've tried compiling the shutdown from admutil-1.3.tar with the
>following(shutdown from SLS will produce some garbages so I want to
>get a new binary)
>
> gcc -O2 -s -o shutdown shutdown.c
>
>assuming GCC is using shared lib and jump table. The size of the
                       ^^^^^^^^^^

    '-s' means link statically. Drop the -s and you
should get a smaller binary.

>executable produced is 9216. In contrast, the shutdown binaries in the
>SLS and HJ packages are of 3xxx in size. Is there anything missed
>in my compilation.
>

-- 
[ Caleb Epstein ][ Davidge Data Systems Corp, New York, NY ][ cae@davidge.com ]
[      Someone's definitely jumping into the tub ... with your brother!       ]