Tells the compiler to generate code for processors that support certain features.
Linux: | -march=processor |
macOS: | -march=processor |
Windows: | None |
processor |
Tells the compiler the code it can generate. Possible values are:
|
OFF |
If option -march is not specified, the compiler may generate Intel® SSE2 and SSE instructions. |
This option tells the compiler to generate code for processors that support certain features.
If you specify both the -ax and -march options, the compiler will not generate Intel-specific instructions.
Options -x and -march are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
Specifying -march=pentium4 sets -mtune=pentium4.
For compatibility, a number of historical processor values are also supported, but the generated code will not differ from the default.
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |
-march=pentium3 |
Linux: -xSSE macOS: None Windows: None |
-march=pentium4 |
Linux: -xSSE2 macOS: None Windows: None |
-march=core2 |
Linux: -xSSSE3 macOS: None Windows: None |