Everything

 

-Xreg_mode


This option specifies the register mode.

[Specification format]

-Xreg_mode=mode

 

-

Interpretation when omitted

The 32-register mode object file is generated.

[Detailed description]

-

This option generates the object file for the specified register mode.

-

This option limits the number of registers used by ccrh to 32 (the 32-register mode) or 22 (the 22-register mode or register mode "common") and embeds the magic number into the object file.

-

Use register mode "common" to generate the object file that does not depend on register modes.

-

The items that can be specified as mode are shown below.
An error will occur if any other item is specified.

Register Mode (mode)

Working Registers

Registers for Register Variables

common

r10 to r14

r25 to r29

22

r10 to r14

r25 to r29

32

r10 to r19

r20 to r29

 

-

An error will occur if mode is omitted.

-

This option generates the code using the register that can be used for a C source file.

-

If 32-register mode object files and 22-register mode object files are mixed, an error will occur at linkage.

[Example of use]

-

To generate the 22-register mode object file, describe as:

>ccrh -Xreg_mode=22 -Xcommon=rh850 main.c