Startup files – Zilog EZ80F916 User Manual
Page 177

UM014423-0607
Using the ANSI C-Compiler
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
157
STARTUP FILES
The startup or C run-time initialization module is an assembly program that performs
required startup functions and then calls
main
, which is the C entry point. The startup pro-
gram performs the following initializations of the C run-time environment:
•
Configure the external and internal memory interfaces.
•
Initialize the stack pointer.
•
Clear the uninitialized variables to zero.
•
Set the initialized variables to their initial value from ROM.
•
Copy code from ROM to RAM if specified in the linker command file.
•
Allocate space for the
errno
variable used by the C run-time libraries.
•
Allocate space for interrupt vectors and set initial default values for interrupt handlers.
•
Initialize peripheral devices used by ZSL if included in the project.
The following table lists the startup files provided with the eZ80Acclaim! C-Compiler. In
this table, <CPU> stands for any of the strings
F91
,
F92
,
F93
,
L92
, or
190
as appropriate
for the CPU you are using in your project.
Table 3. eZ80Acclaim! Startup Files
Name
Description
lib\zilog\cstartup.obj
C startup object file for common code
src\boot\common\cstartup.asm
C startup source file for common code
lib\zilog\vectors24.obj
Object file for 24-bit interrupt vectors
src\boot\common\vectors24.asm
Source file for 24-bit interrupt vectors
lib\zilog\vectors16.obj
Object file for 16-bit interrupt vectors
src\boot\common\vectors16.asm
Source file for 16-bit interrupt vectors
lib\zilog\init_params_<CPU>.obj
C startup object file for CPU-specific initializations
src\boot\eZ80<CPU>\init_params_<CPU>.asm C startup source file for CPU-specific initializations
lib\zilog\zsldevinitdummy.obj
Object file to provide dummy peripheral initialization
for use with ZSL
src\boot\common\zsldevinitdummy.asm
Source code to provide dummy peripheral
initialization for use with ZSL
src\boot\common\zsldevinit.asm
Source code to provide peripheral initialization for use
with ZSL
lib\zilog\startup.obj
Obsolete C startup object file, provided for backward
compatibility