64bit Compiler Options

(Speed up your executeble)

 
Here are the results of gcc compiler options at the same hardware and OS. All gcc options are at http://gcc.gnu.org/onlinedocs/gcc-4.0.1/gcc/
 
Hardware:  AMD64bit 3000 , ASUS A8N-SLI dlx, 2x512 MB Twinmos DDR 400
GCC Ver:  4.0
OS:  Redhat Linux Fedora 4 - 64 bit (Desktop Installation)
 
 
 gcc testcpumath.c -o testcpumath

 gcc -O3 testcpumath.c -o testcpumath

 gcc -O3 -march=x86-64 testcpumath.c -o testcpumath

 gcc -O3 -march=x86-64 -falign-loops=16 testcpumath.c -o testcpumath

 

 gcc -O3 -march=x86-64 -falign-loops=16 -falign-jumps=16 testcpumath.c -o testcpumath

 gcc -O3 -march=x86-64 -falign-loops=16 -falign-jumps=16 -funroll-loops testcpumath.c -o testcpumath