Visible to Intel only — GUID: GUID-F6DED8D3-769D-47AF-9C13-09A8DD4C8907
Visible to Intel only — GUID: GUID-F6DED8D3-769D-47AF-9C13-09A8DD4C8907
march
Tells the compiler to generate code for processors that support certain features.
Syntax
Linux: |
-march=processor |
macOS: |
-march=processor |
Windows: |
None |
Arguments
processor |
Tells the compiler the code it can generate. Possible values are:
|
Default
OFF |
If option -march is not specified, the compiler may generate Intel® SSE2 and SSE instructions. |
Description
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 |
IDE Equivalent
Alternate Options
-march=pentium3 |
Linux: -xSSE macOS: None Windows: None |
-march=pentium4 |
Linux: -xSSE2 macOS: None Windows: None |
-march=core2 |
Linux: -xSSSE3 macOS: None Windows: None |