English
Language : 

CC78K4 Datasheet, PDF (508/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
APPENDIX C LIST OF RUNTIME LIBRARIES
Table C-1. List of Runtime Libraries (4/5)
Classification
Startup routine
Function Name
cstart
cstarte
Flash
compatibility
boot_main
vect00 to 3e
Function
Startup module (including startup modules for booting)
z In the case of a startup module for booting (for flash)
Call the boot_main function (user program).
Branch to the flash area’s branch table top (ITBLTOP) and move
processing to the startup module for flash memory.
Declare the following labels and variables (distinguish between upper case
and lower case letters).
The user is prohibited to define these symbols.
_@FNCTBL
(3 bytes: Medium model, large model)
_@MEMTOP
_@MEMBTM
(3 bytes: Large model)
(3 bytes: Large model)
_errno
(2 bytes)
_@FNCENT
_@BRKADR
(2 bytes)
(2 bytes/3 bytes: Large model)
_@SEED
(4 bytes) _@DIVR (4 bytes)
_@LDIVR
(8 bytes)
_@TOKPRT
(2 bytes/3 bytes: Large model)
z In the case of a startup module for booting
Call the main function (user program).
Call the exit function by parameter 0.
Startup module for flash memory
Define the flash area branch table for branching to the startup module for
flash memory (ITBLTOP is the top address for the flash area branch table).
@EVECT00 CSEG AT ITBLTOP
BR
_@cstarte
Set the final address of the stack area + 1 in the stack pointer (SP).
Execute 0 clearing of data from initialization data copy processing and
external data without initialization values.
Call the main function.
Call the exit function by parameter 0.
Execute boot area main function processing (function prototype: void
boot_main (void);). This function returns without doing anything. However,
as necessary, the user, by creating it, can execute processing which suit’s
the user’s purpose.
Example: In cases where update processing of the flash area program is
executed by referring to SFR, etc.
Create an interrupt vector table when the -ZF option is specified
(function prototype: void vect00(void);, ..., void vect3e (void)).
Specify the top address value of the interrupt function located in the flash
area in the interrupt vector table.
508
User’s Manual U15556EJ1V0UM