This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.1 seems to be much slower then 3.0 in some cases
- From: Marco Morandini <morandini at aero dot polimi dot it>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 07 Jun 2002 19:05:00 +0200
- Subject: Re: gcc 3.1 seems to be much slower then 3.0 in some cases
- Followup-to: 20020607150632.GA4558@core.home
> My experiences: gcc-3.0.4 with -O3 a few percent fast than 2.95.4 with
> -O3, and gcc-3.1 with -O3 is 10 (!!) times slower with this special
> function.
Raise the inline limit (the default is 600?):
gcc 3.1:
gcc -O3 minmax_gcc2.c -finline-limit=700; time ./a.out
real 0m0.310s
user 0m0.300s
sys 0m0.010s
gcc 2.95.3:
/usr/bin/gcc -O3 minmax_gcc2.c; time ./a.out
real 0m0.314s
user 0m0.300s
sys 0m0.000s
Regards,
Marco Morandini