-cpu


< Assembler Command Options / Microcontroller Options >

[Format]

-cpu={ rx600 | rx200 }

 

-

[Default]

The default for this option is determined based on the environment variable CPU_RX.

[Description]

-

This option specifies the CPU type for the instruction code to be generated.

-

When -cpu=rx600 is specified, a relocatable file for the RX600 Series is generated.

-

When -cpu=rx200 is specified, a relocatable file for the RX200 Series is generated.

[Remarks]

-

This option is for compatibility with earlier products.

-

For upcoming RX-family MCUs, the isa option will be used instead of the cpu option to select an instruction-set architecture. In developing new applications, use the isa option where possible.

-

The cpu option can be replaced by the -isa, -fpu and -nofpu options as follows.

-

- -cpu=rx600 ==> -isa=rxv1 -fpu

-

- -cpu=rx200 ==> -isa=rxv1 -nofpu

-

Suboptions will be added depending on the microcontroller products developed in the future.

-

When -cpu=rx200 is specified, the -nofpu option is automatically selected, and writing floating-point operation instructions which are not supported by the RX200 Series or writing FPSW in control registers will cause an error.

-

-cpu=rx200 and the -fpu option cannot be specified at the same time.

-

When -cpu=rx600 is specified while neither the -nofpu option nor the -fpu option has been specified, the -fpu option is automatically selected.

-

Omitting the cpu option will lead to an error if neither the -isa option nor one of the environment variables (CPU_RX or ISA_RX) is specified.

-

The -cpu and -isa options cannot be specified at the same time.