Next: M680x0 Options, Previous: M32C Options, Up: Submodel Options [Contents][Index]
These -m options are defined for Renesas M32R/D architectures:
-m32r2Generate code for the M32R/2.
-m32rxGenerate code for the M32R/X.
-m32rGenerate code for the M32R. This is the default.
-mmodel=smallAssume all objects live in the lower 16MB of memory (so that their addresses
can be loaded with the ld24 instruction), and assume all subroutines
are reachable with the bl instruction.
This is the default.
The addressability of a particular object can be set with the
model attribute.
-mmodel=mediumAssume objects may be anywhere in the 32-bit address space (the compiler
generates seth/add3 instructions to load their addresses), and
assume all subroutines are reachable with the bl instruction.
-mmodel=largeAssume objects may be anywhere in the 32-bit address space (the compiler
generates seth/add3 instructions to load their addresses), and
assume subroutines may not be reachable with the bl instruction
(the compiler generates the much slower seth/add3/jl
instruction sequence).
-msdata=noneDisable use of the small data area. Variables are put into
one of .data, .bss, or .rodata (unless the
section attribute has been specified).
This is the default.
The small data area consists of sections .sdata and .sbss.
Objects may be explicitly put in the small data area with the
section attribute using one of these sections.
-msdata=sdataPut small global and static data in the small data area, but do not generate special code to reference them.
-msdata=usePut small global and static data in the small data area, and generate special instructions to reference them.
-G numPut global and static objects less than or equal to num bytes into the small data or BSS sections instead of the normal data or BSS sections. The default value of num is 8. The -msdata option must be set to one of ‘sdata’ or ‘use’ for this option to have any effect.
All modules should be compiled with the same -G num value. Compiling with different values of num may or may not work; if it doesn’t the linker gives an error message—incorrect code is not generated.
-mdebugMakes the M32R-specific code in the compiler display some statistics that might help in debugging programs.
-malign-loopsAlign all loops to a 32-byte boundary.
-mno-align-loopsDo not enforce a 32-byte alignment for loops. This is the default.
-missue-rate=numberIssue number instructions per cycle. number can only be 1 or 2.
-mbranch-cost=numbernumber can only be 1 or 2. If it is 1 then branches are preferred over conditional code, if it is 2, then the opposite applies.
-mflush-trap=numberSpecifies the trap number to use to flush the cache. The default is 12. Valid numbers are between 0 and 15 inclusive.
-mno-flush-trapSpecifies that the cache cannot be flushed by using a trap.
-mflush-func=nameSpecifies the name of the operating system function to call to flush the cache. The default is ‘_flush_cache’, but a function call is only used if a trap is not available.
-mno-flush-funcIndicates that there is no OS function for flushing the cache.
Next: M680x0 Options, Previous: M32C Options, Up: Submodel Options [Contents][Index]