3.17.53. x86 Options

3.17.53 x86 Options

These ‘-m’ options are defined for the x86 family of computers.

-march=cpu-type
Generate instructions for the machine type cpu-type. In contrast to -mtune=cpu-type, which merely tunes the generated code for the specified cpu-type, -march=cpu-type allows GCC to generate code that may not run at all on processors other than the one indicated. Specifying -march=cpu-type implies -mtune=cpu-type.

The choices for cpu-type are:

native
This selects the CPU to generate code for at compilation time by determining the processor type of the compiling machine. Using -march=native