This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compile-time performance
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: dewar at gnat dot com (Robert Dewar)
- Cc: davem at redhat dot com, drow at mvista dot com, gcc at gcc dot gnu dot org, gdr at codesourcery dot com, law at redhat dot com, mark at codesourcery dot com, scott at coyotegulch dot com
- Date: 19 May 2002 10:23:56 -0300
- Subject: Re: gcc compile-time performance
- Organization: GCC Team, Red Hat
- References: <20020519131422.69A41F28D6@nile.gnat.com>
On May 19, 2002, dewar@gnat.com (Robert Dewar) wrote:
>> SPARC does not imply Solaris Dr. Dewar.
>>
>> I was comparing Linux vs. Solars on SPARC systems.
>> Such that it was a direct OS comparison.
> Sure, I understand that, but it would be surprising if GNU/Linux on SPARC
> was relatively much faster than on x86.
Well, if you compare GNU/Linux with Solaris on x86, you'll get similar
results: GCC builds much slower on Solaris than on GNU/Linux running
on the same hardware.
My understanding is that the main performance hog of GCC builds on
Solaris has to do with /bin/sh. Using CONFIG_SHELL=/path/to/bash
speeds things up considerably on Solaris. Not enough to beat
GNU/Linux, but it's a significant speed up. Configure- and
libtool-processing time are not insignificant, and an inefficient
shell surely doesn't help.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer