s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 219

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
12.5.6 Linking Libraries
Libraries are linked after all other input object files are located.
Searching the library module
Location of library modules (default)
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
Only when an unresolved external reference symbol exists in the input object, the lk33 searches library files
in the order that they are written in a command file. It then reads in and links only the first module found
that has the unresolved symbol. When an external reference is resolved, the lk33 stops searching for the
subsequent modules or library files. Consequently, even when a specified library file contains multiple
instances of the symbol to be searched, all but the first-found module are ignored. If the library does not
exist in the current directory, the directory specified by the -l command is searched.
External reference between library files can be resolved only in the currently processed library file or in the
library files to be searched next. External references defined in an already searched library file are not
resolved. Therefore, be careful with the order in which library files are specified.
Each section in the linked library modules is located in the default section of the same type (i.e., a section in
which all unspecified relocatable sections are located).
Example: Command file
-l c:\cc33\lib
-code 0x0c00000
sample1.o
sample2.o
sample.lib
Module 1
Module 2
Module n
Fig. 12.5.6.1 Example of how library modules are located
Before linkage
LIB CODE1
LIB CODE2
LIB CODEn
LIB DATA1
LIB DATA2
LIB DATAn
sample1.o
sample2.o
sample.lib
LIB BSS1
LIB BSS2
LIB BSSn
; Relocatable object file
; Relocatable object file
; Library file (module n is used)
CODE1
CODE2
DATA1
DATA2
BSS1
BSS2
EPSON
After linkage
sample1.srf
LIB CODEn
LIB DATAn
LIB BSSn
CODE2
CODE1
DATA2
DATA1
BSS2
BSS1
(Link processing in lk33 Ver. 2.1 or earlier)
0x0C00000
0x0000000
CHAPTER 12: LINKER
203

Related parts for s5u1c33000c