Segment naming, Linker command files for c programs – Zilog EZ80F916 User Manual
Page 178

UM014423-0607
Using the ANSI C-Compiler
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
158
NOTE: Some users might want to modify the startup modules provided in the ZDS II
distribution. Incorporating modified startup modules into your project is discussed
in “C Startup Module” on page 86. Linker directive issues related to modifying the
startup module are discussed in “Using Modified ZDS II Startup Modules” on
page 264.
SEGMENT NAMING
The compiler places code and data into separate segments in the object file. The different
segments used by the compiler are listed in the following table.
LINKER COMMAND FILES FOR C PROGRAMS
The following sections describe how the eZ80Acclaim! linker is used to link a C program:
•
“Linker Referenced Files” on page 159
•
•
“Sample Linker Command File” on page 161
lib\zilog\startup190.obj
Obsolete C startup object file for eZ80190, provided
for backward compatibility
src\boot\common\startup.asm
Obsolete C startup source file, provided for backward
compatibility
Table 4. Segments
Segment
Description
DATA
Initialized global and static data
BSS
Un-initialized global and static data
TEXT
Constant data
CODE
Executable code
STRSECT
String literals
.RESET
Reset handler code
.IVECTS
Interrupt vectors
.STARTUP
C run-time initialization
Table 3. eZ80Acclaim! Startup Files
Name
Description