egcs 1.0.2 slooow on x86-solaris2.6

Sudish Joseph sj@eng.mindspring.net
Fri Apr 3 23:34:00 GMT 1998


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



More information about the Gcc-bugs mailing list