100
-m32
-m64
Generate code for a 32-bit or 64-bit environment. The 32-bit environment sets int, long and
pointer to 32 bits and generates code that runs on any i386 system. The 64-bit environment sets
int to 32 bits and long and pointer to 64 bits and generates code for AMD's x86-64 architecture.
-mno-red-zone
Do not use a so called red zone for x86-64 code. The red zone is mandated by the x86-64 ABI,
it is a 128-byte area beyond the location of the stack pointer that will not be modified by signal
or interrupt handlers and therefore can be used for temporary data without adjusting the stack
pointer. The flag
-mcmodel=small
Generate code for the small code model: the program and its symbols must be linked in the
lower 2 GB of the address space. Pointers are 64 bits. Programs can be statically or dynamically
linked. This is the default code model.
-mcmodel=kernel
Generate code for the kernel code model. The kernel runs in the negative 2 GB of the address
space. This model has to be used for Linux kernel code.
-mcmodel=medium
Generate code for the medium model: The program is linked in the lower 2 GB of the address
space but symbols can be located anywhere in the address space. Programs can be statically or
dynamically linked, but building of shared libraries are not supported with the medium model.
-mcmodel=large
Generate code for the large model: This model makes no assumptions about addresses and sizes
of sections. Currently GCC does not implement this model.
4.17.4. IA-64 Options
These are the
options defined for the Intel IA-64 architecture.
-m
-mbig-endian
Generate code for a big endian target. This is the default for HP-UX.
-mlittle-endian
Generate code for a little endian target. This is the default for AIX5 and Linux.
-mgnu-as
-mno-gnu-as
Generate (or don't) code for the GNU assembler. This is the default.
-mgnu-ld
-mno-gnu-ld
Generate (or don't) code for the GNU linker. This is the default.
-mno-pic
Generate code that does not use a global pointer register. The result is not position independent
code, and violates the IA-64 ABI.
disables this red zone.
-mno-red-zone
Chapter 4. GCC Command Options
Need help?
Do you have a question about the ENTERPRISE LINUX 3 - USING GCC and is the answer not in the manual?
Questions and answers