| GNU Compiler Collection (GCC) | www.imodulo.com · 2003-11-10 | ||
| [ Software | Documentation | Contact ] |
These -m options are defined for the SH implementations:
-m1Generate code for the SH1.
-m2Generate code for the SH2.
-m3Generate code for the SH3.
-m3eGenerate code for the SH3e.
-m4-nofpuGenerate code for the SH4 without a floating-point unit.
-m4-single-onlyGenerate code for the SH4 with a floating-point unit that only supports single-precision arithmetic.
-m4-singleGenerate code for the SH4 assuming the floating-point unit is in single-precision mode by default.
-m4Generate code for the SH4.
-mbCompile code for the processor in big endian mode.
-mlCompile code for the processor in little endian mode.
-mdalignAlign doubles at 64-bit boundaries. Note that this changes the calling conventions, and thus some functions from the standard C library will not work unless you recompile it first with -mdalign.
-mrelaxShorten some address references at link time, when possible; uses the linker option -relax.
-mbigtableUse 32-bit offsets in switch tables. The default is to use 16-bit offsets.
-mfmovdEnable the use of the instruction fmovd.
-mhitachiComply with the calling conventions defined by Renesas.
-mnomacsaveMark the MAC register as call-clobbered, even if -mhitachi is given.
-mieeeIncrease IEEE-compliance of floating-point code.
-misizeDump instruction size and location in the assembly code.
-mpadstructThis option is deprecated. It pads structures to multiple of 4 bytes, which is incompatible with the SH ABI.
-mspaceOptimize for space instead of speed. Implied by -Os.
-mprefergotWhen generating position-independent code, emit function calls using the Global Offset Table instead of the Procedure Linkage Table.
-musermodeGenerate a library function call to invalidate instruction cache entries, after fixing up a trampoline. This library function call doesn't assume it can write to the whole memory address space. This is the default when the target is sh-*-linux*.
| © Free Software Foundation, Inc. |