4.2.1 Macro Names

The following shows supported macro names.

Table 4.22

Predefined Macros of Compiler

No.

Option

Predefined Macro

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

lang=c99

__STDC_HOSTED__

1

6

lang=c*1

lang=c99

__STDC_VERSION__

199409L (lang = c*1)

199901L (lang = c99)

7

lang=c99

__STDC_IEC_559__

1

8

lang=c99

__STDC_IEC_559_COMPLEX__

1

9

lang=c99

__STDC_ISO_10646__

199712L

10

lang=cpp*2

lang=ecpp

__cplusplus

1

11

-

__TIME__

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

12

isa=rxv1

isa=rxv2

isa=rxv3

#define __RXV1

#define __RXV2

#define __RXV3 [V3.00.00 or later]

1

1

1

13

endian=big

endian=little

#define __BIG

#define __LIT

1

1

14

dbl_size=4

dbl_size=8

#define __DBL4

#define __DBL8

1

1

15

int_to_short

#define __ INT_SHORT

1

16

signed_char

unsigned_char

#define __SCHAR

#define __UCHAR

1

1

17

signed_bitfield

unsigned_bitfield

#define __SBIT

#define __UBIT

1

1

18

round=zero

round=nearest

#define __ROZ

#define __RON

1

1

19

denormalize=off

denormalize=on

#define __DOFF

#define __DON

1

1

20

bit_order=left

bit_order=right

#define __BITLEFT

#define __BITRIGHT

1

1

21

auto_enum

#define __AUTO_ENUM

1

22

library=function

library=intrinsic

#define __FUNCTION_LIB

#define __INTRINSIC_LIB

1

1

23

fpu

#define __FPU

1

24

-

#define __RENESAS__ *3

1

25

-

#define __RENESAS_VERSION__ *3

0xXXYYZZ00 *4

26

-

#define __RX *3

1

27

pic

#define __PIC

1

28

pid

#define __PID

1

29

cpu=rx600

cpu=rx200

#define __RX600

#define __RX200

1

1

30

-

#define __CCRX__ *3

1

31

isa=rxv1

isa=rxv2

isa=rxv3

#define __RX_ISA_VERSION__

[V3.00.00 or later]

1

2

3

32

dpfpu

#define __DPFPU

[V3.01.00 or later]

1

33

tfu=intrinsic

tfu=intrinsic,mathlib

#define __TFU [V3.01.00 or later]

1

34

tfu=intrinsic,mathlib

#define __TFU_MATHLIB

[V3.01.00 or later]

1

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.

Always defined regardless of the option.

Notes 4.

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