Here, processing to prepare the environment for program execution is described. However, the environment for program execution will differ among user systems, and so a program to set the execution environment must be created according to the specifications of the user system.
This section describes the standard startup program. The startup program for an application that uses the PIC/PID function needs special processing; refer also to section 8.5.7 Application Startup.
A summary of the necessary procedures is given below.
Sets the fixed vector table to initiate the initial setting routine (PowerOn_Reset_PC) at a power-on reset. In addition to the reset vector, processing routines, such as, privileged instruction exception, access exception, undefined instruction exception, floating-point exception, and nonmaskable interrupt, can be registered to the fixed vector table.
Performs the procedures required to reach the main function. Registers and sections are initialized and various initial setting routines are called.
Routines providing an interface between the user system and library functions which are necessary when standard I/O (stdio.h, ios, streambuf, istream, and ostream) and memory management libraries (stdlib.h and new) are used.