This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Code Bloat g++


  > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]