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
- Re: [LIH] [OT] BeOS on May Chip Arun Sharma
- Re: [LIH] [OT] BeOS on May Chip Nick Hill
- Re: [LIH] [OT] BeOS on May Chip Bhavin Sheth
- Re: [LIH] [OT] BeOS on May Chip Rajesh Fowkar
- Re: [LIH] [OT] BeOS on May Chip eccentric globetrotter
- Re: [LIH] [OT] BeOS on May Chip L.V.Gandhi
- Re: [LIH] [OT] BeOS on May Chip Raju
- [LIH] gcc and egcs Raju
- Re: [LIH] gcc and egcs Shridhar Daithankar
- Re: [LIH] gcc and egcs Arun Sharma
- Re: [LIH] gcc and egcs Raju
- Re: [LIH] gcc and egcs Arun Sharma
- Re: [LIH] gcc and egcs Raju
- Re: [LIH] gcc and egcs Suresh Ramasubramanian
- Re: [LIH] gcc and egcs Raju
- Re: [LIH] gcc and egcs Arun Sharma
- Re: [LIH] gcc and egcs Nick Hill
- Re: [LIH] gcc and egcs Arun Sharma
- Re: [LIH] [OT] BeOS on May Chip Ravikant K.Rao
- Re: [LIH] [OT] BeOS on May Chip Rajesh Fowkar
