This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 3.1 seems to be much slower then 3.0 in some cases


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]