Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

march

$
0
0

Tells the compiler to generate code for processors that support certain features.

Architecture Restrictions

Not available on Intel® 64 architecture targeting Intel® MIC Architecture

Syntax

Linux OS and OS X:

-march=processor

Windows OS:

None

Arguments

processor

Indicates to the compiler the code it may generate. Possible values are:

generic

Generates code for the compiler's default behavior.

core-avx2

Generates code for processors that support Intel® Advanced Vector Extensions 2 (Intel® AVX2), Intel® AVX, SSE4.2, SSE4.1, SSE3, SSE2, SSE, and SSSE3 instructions.

core-avx-i

Generates code for processors that support Float-16 conversion instructions and the RDRND instruction, Intel® Advanced Vector Extensions (Intel® AVX), Intel® SSE4.2, SSE4.1, SSE3, SSE2, SSE, and SSSE3 instructions.

corei7-avx

Generates code for processors that support Intel® Advanced Vector Extensions (Intel® AVX), Intel® SSE4.2, SSE4.1, SSE3, SSE2, SSE, and SSSE3 instructions.

corei7

Generates code for processors that support Intel® SSE4 Efficient Accelerated String and Text Processing instructions. May also generate code for Intel® SSE4 Vectorizing Compiler and Media Accelerator, Intel® SSE3, SSE2, SSE, and SSSE3 instructions.

atom

Generates code for processors that support MOVBE instructions, depending on the setting of option -minstruction (Linux* OS and OS X*) or /Qinstruction (Windows* OS). May also generate code for SSSE3 instructions and Intel® SSE3, SSE2, and SSE instructions.

core2

Generates code for the Intel® Core™ 2 processor family.

pentium-mmx

Generates for Intel® Pentium® with MMX technology.

pentiumpro

Generates for Intel® Pentium® Pro, Intel Pentium II, and Intel Pentium III processors.

pentium4m

Generates for Intel® Pentium® 4 processors with MMX technology.

pentium-m
pentium4
pentium3
pentium

Generates code for Intel® Pentium® processors. Value pentium3 is only available on Linux* OS.

Default

pentium4

If no architecture option is specified, value pentium4 is used by the compiler to generate code.

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.

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.

Optimization Notice

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804

IDE Equivalent

None

Alternate Options

-march=pentium3

Linux: -xSSE

OS X: None

Windows: None

-march=pentium4
-march=pentium-m

Linux: -xSSE2

OS X: None

Windows: None

-march=core2

Linux: -xSSSE3

OS X: None

Windows: None

See Also


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>