This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code Bloat g++
- To: gcc at gcc dot gnu dot org
- Subject: Re: Code Bloat g++
- From: Dan Nicolaescu <dann at ics dot uci dot edu>
- Date: Tue, 15 Feb 2000 15:04:42 -0800
- Cc: Neelakanth Nadgir <NEELAKANTH dot NADGIR at sun dot com>
> After stripping
> 48k Feb 15 14:25 O*
> 48k Feb 15 14:26 O2*
> 48k Feb 15 14:26 O3*
> 49k Feb 15 14:26 O3__mtune=ultrasparc*
> 49k Feb 15 14:26 O3__mtune=ultrasparc__mcpu=v8*
> 49k Feb 15 14:26 O3__mtune=ultrasparc__mcpu=v8__ffast_math*
> 49k Feb 15 14:26 Os*
> 55k Feb 15 14:25 noflags*
> The reason I brought this up is because this is one of the few cases
> that gcc generates bigger binaries than sun's 5.0 compiler.
Try this:
g++ -O2 oopack_v1p8.C -fno-rtti -fno-exceptions -mcpu=v8 -mtune=ultrasparc
ls -l a.out
-rwx------ 1 dann grad 18468 Feb 15 15:03 a.out*
(this is with gcc-2.95.2)
I don't know how to do something similar with SC-5.0.
--dan