On Wed, May 10, 2000 at 10:07:00AM +0530, Raju wrote:
> 
> compiled with         executable size
> gcc                   12088
> gcc - stripped                8996
> egcs                  33041
> egcs - stripped               13196
> 
> As is evident the gcc compiled executable is *MUCH* smaller than even the
> egcs "compiled and stripped" executable... why???

egcs links in some C++ exception handling code in /usr/lib/libgcc.a
by default. I think that's what causes the bloat.

$ size a.out.egcs
   text    data     bss     dec     hex filename
    829     224      24    1077     435 a.out
$ size a.out.gcc
   text    data     bss     dec     hex filename
    838     156       4     998     3e6 a.out

As you can see, the bloat is coming from data/bss.

I wouldn't worry too much about these things - unless I'm working
on some handheld device low on memory.

        -Arun

-----------------------------------------------------------------------
For more information on the LIH mailing list see:
http://lists.linux-india.org/lists/LIH

Reply via email to