5.4 Macro Names

The following predefined macros are defined according to the option specification and version.

Table 5.35

Predefined Macros of Assembler

 

Option

Predefined Macro

1

cpu=rx600

cpu=rx200

__RX600

__RX200

.DEFINE 1

.DEFINE 1

2

endian=big

endian=little

__BIG

__LITTLE

.DEFINE 1

.DEFINE 1

3

-

__RENESAS_VERSION__ *1

.DEFINE XXYYZZ00H *2

4

isa=rxv1

__RXV1

.DEFINE 1

5

isa=rxv2

__RXV2

.DEFINE 1

6

isa=rxv3

__RXV3 [V3.00.00 or later]

.DEFINE 1

7

isa=rxv1

isa=rxv2

isa=rxv3

__RX_ISA_VERSION__ [V3.00.00 or later]

.DEFINE 1

.DEFINE 2

.DEFINE 3

8

-

__ASRX__ *1

.DEFINE 1

9

-

__RENESAS__ *1

.DEFINE 1

10

-fpu

__FPU

.DEFINE 1

11

-dpfpu

__DPFPU

.DEFINE 1

Notes 1.

Always defined regardless of the option.

Notes 2.

When the Assembler version is VXX.YY.ZZ, the value of __RENESAS_VERSION__ is XXYYZZ00H.
Example
For V3.01.00: __RENESAS_VERSION__ .DEFINE 03010000H.