-march=native

David Abdurachmanov david.abdurachmanov@gmail.com
Sat May 20 09:47:00 GMT 2017


> On 20 May 2017, at 11:39, Toebs Douglass <toby@winterflaw.net> wrote:
> 
> What's up with this?  and words of wisdom?

Hi,

This was added in GCC 6.

From https://gcc.gnu.org/gcc-6/changes.html

"""
The command-line options -march=native, -mcpu=native and -mtune=native are now
available on native AArch64 GNU/Linux systems. Specifying these options causes
GCC to auto-detect the host CPU and choose the optimal setting for that system.
"""

In general, this is target specific. Thus you have to look into target specific
documentation on how it will work.

david


More information about the Gcc-help mailing list