Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

Output codes vary every time compilation is performed (CC-RL)

Last Updated:06/14/2017

Question:

I am using RL78 Compiler CC-RL. Although I did not change any programs or options, output codes vary every time compilation is performed. Why does this phenomenon occur?

Answer:

The compiler has __DATE__ and __TIME__ as predefined macros. We think that __DATE__ or __TIME__ is coded in the source file.

- __DATE__
 Compilation date of the source file (character string constant in "Mmm dd yyyy" format)

- __TIME__
 Compilation time of the source file (character string constant in "hh : mm : ss" format, similar to time generated by the asctime function)

When these macros are used, the date and time when compilation is performed are set, and output codes will consequently vary.

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family