gcc 3.1 seems to be much slower then 3.0 in some cases
Marco Morandini
morandini@aero.polimi.it
Fri Jun 7 10:03:00 GMT 2002
> 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
More information about the Gcc
mailing list