This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.0.2 slooow on x86-solaris2.6
- To: pkrishna at blr dot cybercash dot com (Krishna Padmasola)
- Subject: Re: egcs 1.0.2 slooow on x86-solaris2.6
- From: Sudish Joseph <sj at eng dot mindspring dot net>
- Date: 03 Apr 1998 01:18:48 -0500
- Cc: egcs-bugs at cygnus dot com
- References: <9803301516.AA24006@blr.cybercash.com>
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