arch

Determines the version of the architecture for which the compiler generates instructions.

IDE Equivalent

None

Architectures

IA-32, IntelŪ EM64T

Syntax

Linux: -arch keyword
Windows:  /architecture:keyword

Arguments

keyword     Is the processor type. Possible values are:
  pn1 Optimizes for the IntelŪ PentiumŪ processor.
  pn2 Optimizes for the IntelŪ PentiumŪ Pro, IntelŪ PentiumŪ II, and IntelŪ PentiumŪ III processors.
  pn3 Optimizes for the IntelŪ PentiumŪ Pro, IntelŪ PentiumŪ II, and IntelŪ PentiumŪ III processors. This is the same as specifying arch pn2.
  pn4 Optimizes for the IntelŪ PentiumŪ 4 processor.
  SSE Optimizes for Intel Pentium 4 processors with Streaming SIMD Extensions (SSE).
  SSE2 Optimizes for Intel Pentium 4 processors with Streaming SIMD Extensions 2 (SSE2).

Default

pn4

The compiler optimizes for the IntelŪ PentiumŪ 4 processor.

Description

This option determines the version of the architecture for which the compiler generates instructions.

On IntelŪ EM64T systems, only keywords pn1, pn2, pn3, and pn4 are valid.

Alternate Options

Linux: None

Windows: /arch