This is the mail archive of the gcc-bugs@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: egcs 1.0.2 slooow on x86-solaris2.6


Krishna Padmasola writes:
> egcs is very slow in compiling c++ code on intel solaris.

I had the same problem (also on i386-pc-solaris2.6).  Top showed that
/usr/ccs/bin/as was spending more time and cpu in generating the .o
file than cc1 was in generating assembly, which seems somewhat
counterintuitive to me.  The Solaris assembler also uses lots of
memory is such cases -- ~15MB of core to assemble a 3MB file in one
case.

This seems to be related to the size of the .s files g++ emits when -g
is enabled (I'm _not_ saying this is a g++ problem).  Removing -g sped
up the compilation of ACE by a factor of 3 or so on my machine.
Whether removing -g can be considered a solution is debatable.

-Sudish


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