optimization gcc



Sorry for OT, but i think all here use gcc.

Which flags should I set in gcc to get best optimized code in C ( for speed ) ?
Currently I use:
gcc -Wall -O2 march=athlon -funroll-all-loops -fomit-frame-pointer -c xyz.c
How can i get the fastest code?

Albert Pala




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