4.2.1 Macro Names

The following shows supported macro names.

Table 4.20

Predefined Macros of Compiler

No.

Option

Predefined Macro

 

_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).

_FILE_

Name of assumed source file (character string constant).

_LINE_

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

_STDC_

1

lang=c99

_STDC_HOSTED_

1

lang=c*1

lang=c99

_STDC_VERSION_

199409L (lang = c*1)
199901L (lang = c99)

lang=cpp*2

lang=ecpp

_cplusplus

1

_TIME_

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

1

isa=rxv1

isa=rxv2

#define __RXV1

#define __RXV2

1

1

2

endian=big

endian=little

#define __BIG

#define __LIT

1

1

3

dbl_size=4

dbl_size=8

#define __DBL4

#define __DBL8

1

1

4

int_to_short

#define __ INT_SHORT

1

5

signed_char

unsigned_char

#define __SCHAR

#define __UCHAR

1

1

6

signed_bitfield

unsigned_bitfield

#define __SBIT

#define __UBIT

1

1

7

round=zero

round=nearest

#define __ROZ

#define __RON

1

1

8

denormalize=off

denormalize=on

#define __DOFF

#define __DON

1

1

9

bit_order=left

bit_order=right

#define __BITLEFT

#define __BITRIGHT

1

1

10

auto_enum

#define __AUTO_ENUM

1

11

library=function

library=intrinsic

#define __FUNCTION_LIB

#define __INTRINSIC_LIB

1

1

12

fpu

#define __FPU

1

13

#define __RENESAS__ *3

1

14

#define __RENESAS_VERSION__ *3

0xXXYYZZ00 *4

15

#define __RX *3

1

16

pic

#define __PIC

1

17

pid

#define __PID

1

18

cpu=rx600

cpu=rx200

#define __RX600

#define __RX200

1

1

19

#define __CCRX__ *3

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 V2.05.00: #define __RENESAS_VERSION__ 0x02050000