m32, m64

Tells the compiler to generate code for a specific architecture.

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture

Syntax

Linux: None
Mac OS: -m32
-m64
Windows:  None

Arguments

None

Default

OFF The compiler's behavior depends on the host system.

Description

These options tell the compiler to generate code for a specific architecture.

Option Description
-m32 Tells the compiler to generate code for IA-32 architecture.
-m64 Tells the compiler to generate code for Intel® 64 architecture.

The -m32 and -m64 options are the same as options -arch i386 and -arch x86_64, respectively. Note that these -arch options are provided for compatibility with gcc. They are not related to the Windows option /arch.

Alternate Options

None