English
Language : 

CC78K4 Datasheet, PDF (431/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Function Call Function from the Boot Area to the Flash Area #pragma ext_func
COMPATIBLITY
From another C compiler to this C compiler
• Modification is not required if the #pragma ext_func is not used.
• When performing the function call from the boot area to the flash area, modify the program according to
the method above.
From this C compiler to another C compiler
• Delete the #pragma ext_func instruction or delimit it with #ifdef.
• When performing the function call from the boot area to the flash area, the following modification is
required.
EXAMPLE
In the case that the branch table is generated after address 4000H and functions f1 and f2 in the flash area are called
from the boot area.
(C source)
(1) Boot area side
#pragma ext_table 0x4000
#pragma ext_func f1 3
#pragma ext_func f2 4
extern void f1(void);
extern void f2(void);
void func()
{
f1();
f2();
}
User’s Manual U15556EJ1V0UM
431