English
Language : 

CC78K4 Datasheet, PDF (357/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
callf Functions
callf/_ _callf
EXAMPLE
(C source 1)
_ _callf extern int fsub();
void main ()
{
int ret_val;
ret_val = fsub();
}
(C source 2)
_ _callf int fsub()
{
int val;
return val;
}
(Output object of compiler) With large model
<C source 1>
EXTRN _fsub
Callf !_fsub
;Declaration
;Call
<C source 2> (to be allocate to callf entry area)
PUBLIC _fsub ;Declaration
@@CALF CSEG FIXED
_fsub:
:
Function body
:
;Function definition
COMPATIBILITY
From another C compiler to this C compiler
• Modification is not required if the keyword callf/_ _callf is not used.
• When changing functions to callf functions, modify the program according to the method above.
From this C compiler to another C compiler
• #define must be used to allow callf functions to be handled as ordinary functions.
User’s Manual U15556EJ1V0UM
357