gcc optimizations

Jerry DeLisle jvdelisle at verizon.net
Sat Aug 14 04:13:57 UTC 2004


I thought folks might be interested in this.  I compiled whetstone.c
with the FC2 gcc and gcc34 to compare the two.  I used identical compile
statements except for the compiler invoked.

gcc -O3 -funroll-loops -malign-double whetstone.c -lm -o whets

Then called with:

./whets 50000

The results:

gcc	833.3 mips

gcc34	1250 mips

Quite a difference.  

Jerry





More information about the fedora-list mailing list