English
Language : 

CC78K4 Datasheet, PDF (156/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
9.8 Compiler-Defined Macro Names
In this C compiler, the following macro names have been defined.
_ _LINE_ _
_ _FILE_ _
_ _DATE_ _
_ _TIME_ _
_ _STDC_ _
Line number of the current source line (decimal constant)
Source file name (string literal)
Date the source file was compiled (string literal in the form of “Mmm dd yyyy”)
Time of day the source file was compiled (string literal in the form of “hh:mm:ss”)
Decimal constant “1” that indicates the compliance with ANSINote specification
Note ANSI is the acronym for American National Standards Institute
A #define or #undef preprocessing directive must not be applied to these macro name and defined identifiers.
All the macro names of the compiler definition start with an underscore followed by an uppercase character or a
second underscore.
In addition to the above macro names, macro names indicating the series name of devices according to the
device subject to applied product development and macro names indicating device names are provided. To output
the object code for the target device, these macro names must be specified by the option at compilation or by the
processor type in the C source.
• Macro name indicating the series name of devices
‘_ _K4 _ _’
• Macro name indicating the device name
‘_ _’ is added before the device type name and ‘_’ is added after the device type name.
Describe letters in uppercase
(Example) _ _4026_ _ _4038Y_
Remark The device type names are the same as those specified by the -C option. For the device type names,
refer to the reference materials related to device files.
156
User’s Manual U15556EJ1V0UM