English
Language : 

CC78K4 Datasheet, PDF (157/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 9 PREPROCESSING DIRECTIVES (COMPILER DIRECTIVES)
This C compiler has a macro name indicating the memory model or location.
• Macro name indicating memory model
When small model is specified
#define _ _K4_SMALL_ _
1
When medium model is specified
#define _ _K4_MEDIUM_ _
1
When large model is specified
#define _ _K4_LARGE_ _
1
• Macro name indicating location
Location 0
#define _ _K4LOC0_ _
1
Location 15
#define _ _K4LOC15_ _
1
The device type for compilation is specified by adding the following to the command line
‘-c device type name’
Example cc78k4 -c4038Y prime.c
It is possible to avoid specifying the device type at compilation by specifying it at the start of the C source
program.
‘#pragma PC (device type)’
Example #pragma PC (4038Y)
:
However, the following can be described before ‘#pragma PC (device type)’
• Comment statement
• Preprocessing directives that do not generate definition/reference of variables nor functions.
User’s Manual U15556EJ1V0UM
157