-march=native @ GCC

The native Linux/GNU toolchain GCC got an option where you map architecture flag to native (-march=native). It allows compiler to generate optimized code supported by the underlying targeted machine.

To determine which other options are enabled on passing -march=native, use following command:

gcc -Q --help=target -march=native

Following command can be useful too to see help

gcc --help=target -march=native

Link: https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/Overall-Options.html#Overall-Options

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s