Skip to content

x86-64-v3

  • -march=x86-64-v3 implies -mtune=generic:
Terminal window
gcc -march=x86-64-v3 -Q --help=target | grep -- '-mtune='
  • Use -with-gcc-arch=x86-64-v3 for isl and libffi which passes march only (without mtune), otherwise configure will guess the wrong architecture; it detects the native architecture instead haswell or amdfam10:
checking whether C compiler accepts -march=x86-64-v3... yes
checking for gcc architecture flag... -march=x86-64-v3
checking whether C compiler accepts -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -march=x86-64-v3... yes
  • Verify x86-64-v3 target build with qemu; will not work without passing cpu as host

Resources