gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'Examples:
-march=amdfam10 -mcx16 -msahf -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10
-march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2
Title | GCC native compile and flags |
Description | Which flags does GCC use when using native compile mode |
Tags | gcc native optimization |
Category | Developer |