GCC 8 Will Let You -march=native Correctly On ARM/AArch64

Written by Michael Larabel in GNU on 24 February 2018 at 12:12 AM EST. 14 Comments
Linux developers and enthusiasts on x86_64 have long enjoyed the ability to use the -march=native option for having the GCC compiler attempt to auto-detect the CPU and set the appropriate microarchitecture flags. That support is finally being offered up for ARM with GCC 8.

This week -march=native now works on AArch64 as well as for ARM in general too.

That was followed up by allowing native for -mtune and -mcpu too on ARM.

Up to now on architectures where -march=native is unsupported, it would have no effect on the compiler's tuning/optimization behavior. The complete GCC ARM option documentation here.

GCC 8 should be officially released in the next month or two in the form of GCC 8.1 as the first stable release for this annual feature update to the GNU Compiler Collection.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week