[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#291693: gcc-3.3: optimization -O2 is worst than -O1



I don't want to be tedious just showing what i found:)
and becouse i have gcc-3.4 too here is results:) again and for last.

carredas:/home/edmon# gcc-3.4 -Wall -O1 test.c -lm
carredas:/home/edmon# time ./a.out
sum = 4e+38

real    0m6.260s
user    0m6.254s
sys     0m0.003s
carredas:/home/edmon# gcc-3.4 -Wall -O2 test.c -lm
carredas:/home/edmon# time ./a.out
sum = 4e+38

real    0m6.232s
user    0m6.217s
sys     0m0.002s
carredas:/home/edmon# gcc-3.3 -Wall -O1 test.c -lm
carredas:/home/edmon# time ./a.out
sum = 4e+38

real    0m5.641s
user    0m5.638s
sys     0m0.001s
carredas:/home/edmon# gcc-3.3 -Wall -O2 test.c -lm
carredas:/home/edmon# time ./a.out
sum = 4e+38

real    0m5.780s
user    0m5.715s
sys     0m0.003s






Reply to: