Tells the compiler to generate code for a specific architecture.
None
IA-32 architecture, Intel® 64 architecture
Linux: | None |
Mac OS: | -m32 -m64 |
Windows: | None |
None
OFF | The compiler's behavior depends on the host system. |
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.
None