|
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
|
▷ |