Zilog Z80380 Uživatelský manuál Strana 54

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 116
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 53
Invoking the Linker Linking Files
3–4 UM004001-COR1103
RUN TIME INITIALIZATION FILE
The C run-time initialization file is an assembly program that initializes memory before link-
ing. This assembly program clears the .bss section, sets the pointer, and initializes the proces-
sor mode resister. Once these initializations are complete the program calls main, which is
the C entry point.
INSTALLED FILES
The following linker associated files are installed in the C-Compiler installation directory.
NOTE: Source files for the run-time initialization files are provided in Appendix A, Initialization and
Link Files.
INVOKING THE LINKER
The linker can be invoked either through ZDS or the DOS command line.
USING THE LINKER IN ZDS
The linker is automatically invoked when performing a build in ZDS. The following steps are
performed when using the linker with ZDS.
1. ZDS calls the linker after compiling and assembling all the files.
2. All the object files and libraries that are include in the project are linked.
3. Error or warning messages that are generated by the linker are displayed in the ZDS output
window.
4. If no errors are encountered the linker produces an executable file in either a COFF or HEX
format. This executable file is placed in the project directory.
TABLE 3-1. LINKER REFERENCED FILES
File Description
z380boot.s Assembly language source of example C startup module
z380.lnk Example linker command file for z380
libc.lib Standard C library for small model.
lhf.lib Library of runtime helper functions
Zobrazit stránku 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 115 116

Komentáře k této Příručce

Žádné komentáře