m

Tells the compiler to generate optimized code specialized for the processor that executes your program.

IDE Equivalent

None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-m[processor]

Windows:

None

Arguments

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.

Default

Linux systems: -msse2
Mac OS X systems using IA-32 architecture: -msse3
Mac OS X systems using Intel® 64 architecture: -mssse3

For more information on the default values, see Arguments above.

Description

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.

Alternate Options

Linux and Mac OS X: None

Windows: /arch

See Also