This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.1 is still very slow, compared to 2.95.3
- From: Jim Wilson <wilson at redhat dot com>
- To: espie at nerim dot net
- Cc: gcc at gcc dot gnu dot org
- Date: 17 May 2002 17:07:01 -0400
- Subject: Re: gcc 3.1 is still very slow, compared to 2.95.3
- References: <20020517144258.A17881@tetto.liafa.jussieu.fr>
>Okay, now, what passes is gcc 3.1 running that slow it down that much ?
>What would be the equivalent set of options to gcc's 2.95.3 -O2, so that
>I can see whether we can get down to more reasonable numbers ?
If you use -fverbose-asm -S, and look at the comments in the assembly output,
that will tell you all flags that have been enabled. This may be different
for every target. This isn't a complete list of optimizations, since not all
optimization passes have a controlling -f option. They should all have a -f
option, but not everyone bothers to put one in. In any case, this may be
sufficient for your purposes, since it will give you a list of options that
you can try turning off to make the compiler faster.
You can get the same info printed to stderr by using -v -Q.
Jim