GCC 8 Will Let You -march=native Correctly On ARM/AArch64
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.
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.
14 Comments