Everything
4.2.1 Macro Names

The following shows supported macro names.

Table 4.6

Predefined Macros of Compiler

No.

Macro Name

Value

Option

1

__DATE__

Date of translating source file (character string constant in the form of "Mmm dd yyyy".) Here, the name of the month is the same as that created by the asctime function stipulated by ANSI standards (3 alphabetic characters with only the first character is capital letter) (The first character of dd is blank if its value is less than 10).

-

2

__FILE__

Name of assumed source file (character string constant).

-

3

__LINE__

Line number of source line at that point (decimal).

-

4

__STDC__

1

-

5

__STDC_HOSTED__

1

lang=c99

6

__STDC_VERSION__

199409L (lang = c*1)

199901L (lang = c99)

lang=c*1

lang=c99

7

__STDC_IEC_559__

1

lang=c99

8

__STDC_IEC_559_COMPLEX__

1

lang=c99

9

__STDC_ISO_10646__

199712L

lang=c99

10

__cplusplus

1

lang=cpp*2

lang=ecpp

11

__TIME__

Translation time of source file (character string constant having format "hh:mm:ss").

-

12

#define __RXV1

#define __RXV2

#define __RXV3 [V3.00.00 or later]

1

1

1

isa=rxv1 *3

isa=rxv2 *3

isa=rxv3 *3

13

#define __BIG

#define __LIT

1

1

endian=big

endian=little

14

#define __DBL4

#define __DBL8

1

1

dbl_size=4

dbl_size=8

15

#define __INT_SHORT

1

int_to_short

16

#define __SCHAR

#define __UCHAR

1

1

signed_char

unsigned_char

17

#define __SBIT

#define __UBIT

1

1

signed_bitfield

unsigned_bitfield

18

#define __ROZ

#define __RON

1

1

round=zero

round=nearest

19

#define __DOFF

#define __DON

1

1

denormalize=off

denormalize=on

20

#define __BITLEFT

#define __BITRIGHT

1

1

bit_order=left

bit_order=right

21

#define __AUTO_ENUM

1

auto_enum

22

#define __FUNCTION_LIB

#define __INTRINSIC_LIB

1

1

library=function

library=intrinsic

23

#define __FPU

1

fpu

24

#define __RENESAS__ *4

1

-

25

#define __RENESAS_VERSION__ *4

0xXXYYZZ00 *5

-

26

#define __RX *4

1

-

27

#define __PIC

1

pic

28

#define __PID

1

pid

29

#define __RX600

#define __RX200

1

1

cpu=rx600

cpu=rx200

30

#define __CCRX__ *4

[V2.03.00 or later]

1

-

31

#define __RX_ISA_VERSION__

[V3.00.00 or later]

1

2

3

isa=rxv1 *3

isa=rxv2 *3

isa=rxv3 *3

32

#define __DPFPU

[V3.01.00 or later]

1

dpfpu

33

#define __TFU [V3.01.00 or later]

1

tfu=intrinsic

tfu=intrinsic,mathlib

2

(In the case of tfu_version=v2)

34

#define __TFU_MATHLIB

[V3.01.00 or later]

1

tfu=intrinsic,mathlib

2

(In the case of tfu_version=v2)

Notes 1.

Includes cases where a file with the .c extension is compiled without specifying the -lang option.

Notes 2.

Includes cases where a file with the .cpp, .cp, or .cc extension is compiled without specifying the -lang option.

Notes 3.

Includes the specification by the ISA_RX environment variable.

Notes 4.

Always defined regardless of the option.

Notes 5.

When the Compiler version is VXX.YY.ZZ, the value of __RENESAS_VERSION__ is 0xXXYYZZ00.
Example
For V3.01.00: #define __RENESAS_VERSION__ 0x03010000