
UM017105-0511 Startup Files
Zilog Developer Studio II – ZNEO™
User Manual
187
Startup Files
The start-up or C run-time initialization file is an assembly program that performs required
start-up functions and then calls
main, which is the C entry point. The start-up program
performs the following C run-time initializations:
1. Initializes the stack pointer and stack overflow register.
2. Initializes the external interface if enabled (see the description of the Configure Target
Dialog Box on page 76).
3. Clears the
_Near and _Far uninitialized variables to zero.
4. Sets the initialized
_Near and _Far variables to their initial value from _Erom.
5. Allocate space for interrupt vectors.
6. Allocate space for the
errno variable used by the C run-time libraries.
Table 14 lists the start-up files provided with the ZNEO C-Compiler.
Table 14. ZNEO Startup Files
Name Description
lib\zilog\startups.obj C start-up object file for small model.
src\boot\common\startups.asm C start-up source file for small model.
lib\zilog\startupl.obj C start-up object file for large model.
src\boot\common\startupl.asm C start-up source file for large model.
lib\zilog\startupexkl.obj C start-up object file (large model) with external interface set up for
devices with Port K.
lib\zilog\startupexl.obj C start-up object file (large model) with external interface set up for
devices without Port K.
src\boot\common\startupexl.asm C start-up source file (large model) with external interface set up.
lib\zilog\startupexks.obj C start-up object file (small model) with external interface set up for
devices with Port K.
lib\zilog\startupexs.obj C start-up object file (small model) with external interface set up for
devices without Port K.
src\boot\common\startupexs.asm C start-up source file (small model) with external interface set up.
Komentáře k této Příručce