Merero

Which CFLAGS to use ?

Discussion created by Merero on May 28, 2011
Latest reply on May 28, 2011 by Brane2
GCC 4.6, k8-sse3

Hello !

I wonder : which CFLAGS should I use to build a whole system like Gentoo Linux ?
I've got a AMD TF-20 processor (k8-sse3).

I've been using these ones : -march=native -O2 -fomit-frame-pointer -fprefetch-loop-arrays -ftree-vectorize -fpeel-loops -funswitch-loops -ftracer -pipe

But I don't think they are so good.

I've read some interesting docs from AMD saying that the best to use with GCC 4.0 are : -O3 -ffast-math -funroll-loops -fpeel-loops -ftracer -funswitch-loops -ftree-vectorize

 

So, what do you think ? What are the best CFLAGS for k8-sse3 with GCC 4.6 ?

Thank you.

Outcomes