On Wed, Nov 23, 2011 at 11:55 AM, Stefan G. Weichinger <li...@xunil.at> wrote: > > Ad CFLAGS for i7-2600: > > Is that too much ricer-style? --> > > ### gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p' > > CFLAGS="-O2 -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -maes > -mpclmul -mpopcnt -mavx --param l1-cache-size=32 --param > l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=generic" > > gcc-4.5.3-r1 ...
That's equivalent to, what, "-O2 -D_FORTIFY_SOURCE=2 -march=native" ? I don't see anything to complain about. Actually, it's pretty interesting seeing what that processor comes down to for -march=native. I wish there were a database of processors and their decomposed compiler tuning flags for comparison. That would be *very* interesting, from the standpoint of proc shopping and looking at the evolution of CPUs. -- :wq