Tells the compiler to generate optimized code specialized for the processor that executes your program.
IA-32, Intel® 64 architectures
Linux and Mac OS X: | -m[processor] |
Windows: | None |
processor |
Indicates the processor for which code is generated. Possible values are: ia32 Generates code that will run on any Pentium or later processor. Disables any default extended instruction settings, and any previously set extended instruction settings. This value is only available on Linux systems using IA-32 architecture. sse This is the same as specifying ia32. sse2 Generates code for Intel® Streaming SIMD Extensions 2 (Intel® SSE2). This value is only available on Linux systems. sse3 Generates code for Intel® Streaming SIMD Extensions 3 (Intel® SSE3). ssse3 Generates code for Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3). sse4.1 Generates code for Intel® Streaming SIMD Extensions 4 Vectorizing Compiler and Media Accelerators. |
Linux systems: -msse2 |
For more information on the default values, see Arguments above. |
This option tells the compiler to generate optimized code specialized for the processor that executes your program.
Code generated with the values ia32, sse, sse2, or sse3 should execute on any compatible non-Intel processor with support for the corresponding instruction set.
Options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
Linux and Mac OS X: None
Windows: /arch