Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Machine-Dependent Options   [Contents][Index]


3.21.26 M32R/D Options

These-m options are defined for Renesas M32R/D architectures:

-m32r2

Generate code for the M32R/2.

-m32rx

Generate code for the M32R/X.

-m32r

Generate code for the M32R. This is the default.

-mmodel=small

Assume all objects live in the lower 16MB of memory (so that their addressescan be loaded with theld24 instruction), and assume all subroutinesare reachable with thebl instruction.This is the default.

The addressability of a particular object can be set with themodel attribute.

-mmodel=medium

Assume objects may be anywhere in the 32-bit address space (the compilergeneratesseth/add3 instructions to load their addresses), andassume all subroutines are reachable with thebl instruction.

-mmodel=large

Assume objects may be anywhere in the 32-bit address space (the compilergeneratesseth/add3 instructions to load their addresses), andassume subroutines may not be reachable with thebl instruction(the compiler generates the much slowerseth/add3/jlinstruction sequence).

-msdata=none

Disable use of the small data area. Variables are put intoone of.data,.bss, or.rodata (unless thesection 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 thesection attribute using one of these sections.

-msdata=sdata

Put small global and static data in the small data area, but do notgenerate special code to reference them.

-msdata=use

Put small global and static data in the small data area, and generatespecial instructions to reference them.

-Gnum

Put global and static objects less than or equal tonum bytesinto the small data or BSS sections instead of the normal data or BSSsections. The default value ofnum 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-Gnum value.Compiling with different values ofnum may or may not work; if itdoesn’t the linker gives an error message—incorrect code is notgenerated.

-mdebug

Makes the M32R-specific code in the compiler display some statisticsthat might help in debugging programs.

-malign-loops
-mno-align-loops

Align all loops to a 32-byte boundary. This option is disabled by default.

-missue-rate=number

Issuenumber instructions per cycle.number can only be 1or 2.

-mbranch-cost=number

number can only be 1 or 2. If it is 1 then branches arepreferred over conditional code, if it is 2, then the opposite applies.

-mflush-trap=number

Specifies the trap number to use to flush the cache. The default is12. Valid numbers are between 0 and 15 inclusive.

-mno-flush-trap

Specifies that the cache cannot be flushed by using a trap.

-mflush-func=name

Specifies the name of the operating system function to call to flushthe cache. The default is ‘_flush_cache’, but a function callis only used if a trap is not available.

-mno-flush-func

Indicates that there is no OS function for flushing the cache.


Next:M680x0 Options, Previous:M32C Options, Up:Machine-Dependent Options   [Contents][Index]


[8]ページ先頭

©2009-2026 Movatter.jp