English
Language : 

CC78K0S Datasheet, PDF (161/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
9.8 Predefined 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 names 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 names of devices depending on 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 time or by
the processor type in the C source.
• Macro name indicating the series names of devices
'_ _K0S_ _'
• Macro name indicating the device name
‘_ _’ is added before the device type name and ‘_’ is added after the device type name.
Describe English characters in uppercase.
(Example) _ _9026_ _ _9216Y_
Remark The device type names are the same as the ones specified by -C option. For the device type names, refer
to the reference related to device files.
This C compiler has a macro name indicating the memory model.
• Define as follows when the static model is specified
#define _ _STATIC_MODEL_ _ 1
The device type for compilation is specified by adding the following to the command line
‘-c device type name’
(Example) cc78ks –c9216Y prime.c
User’s Manual U14872EJ1V0UM
161