English
Language : 

CC78K0S Datasheet, PDF (501/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
APPENDIX C LIST OF RUNTIME LIBRARIES
Classification
Startup routine
Pre- and post-
processing of
function
Table C-1. List of Runtime Libraries (3/6)
Function
Supported Model
Name Normal Model Static Model
cstart
√
√
cprep
√
−
cdisp
√
−
cprep2
√
−
cdisp2
√
−
nrcp2
−
√
nrcp3
−
√
krcp2
−
√
krcp3
−
√
nkrc3
−
√
nrip2
−
√
nrip3
−
√
krip2
−
√
krip3
−
√
nkri31
−
√
nkri32
−
√
nrsave
−
√
nrload
−
√
Function
Startup module
• After an area (2 × 32 bytes) where a function that will be
registered is reserved with the atexit function, sets the
beginning label name to _@FNCTBL.
• Reserve a break area (32 bytes), sets the beginning
label name to _@MEMTOP, and then sets the next label
name of the area to _@MEMBTM.
• Define the segment in the reset vector table as follows,
and set the beginning address of the startup module.
@@VECT00 CSEG AT 0000H
DW
_@cstart
• Set 0 to the variable _errno to which the error number is
input.
• Set the variable _@FNCENT, to which the number of
functions registered by the atexit function is input, to 0.
• Set the address of _@MEMTOP to the variable
_@BRKADR as the initial break value.
• Set 1 as the initial value for the variable _@SEED, which
is the source of pseudo random numbers for the rand
function.
• Perform copy processing of initialized data and execute
0 clear of external data without an initial value.
• Call the main function (user program)
• Call the exit function by parameter 0.
Preprocessing of function
Postprocessing of function
Preprocessing of function (including the saddr area for
register variables)
Postprocessing of function (including the saddr area for
register variables)
For copying arguments
For saving _@NRATxx
For restoring _@NRATxx
User’s Manual U14872EJ1V0UM
501