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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
Locating absolute files
Priority of address specification
Section alignment
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
An absolute object file has the absolute address of each of its sections already determined before linkage,
therefore the sections in this file are located at those addresses preferentially over other sections. (The lk33
locates the absolute object file before relocatable object files.) The absolute object files are unaffected by
commands that specify addresses, such as the -code, -data, or -bss command.
Example: Command file
Address specifications are resolved according to the following order of priorities:
1. Settings in absolute object file
2. Settings by -code { }, -data { }, and -bss { } commands
3. Settings by -code, -data, and -bss commands
4. Default settings
Sections in absolute object files are located at the addresses specified in the source preferentially over all
other sections.
Sections in relocatable object files are located in such a way that those specified by the -code { }, -data { },
and -bss { } commands are located before other sections, and the sections in remaining other files are
located beginning with the addresses set by the -code, -data, and -bss commands or the default addresses.
Sections in two or more files having the same priority are located in the order the file names are written in
the command file (or command line) in the upward address direction.
Each section, by default, is located at the 4-byte boundary.
The alignment boundary can be set to 2
If any section location address other than a 4-byte boundary address or a boundary address set using the
-align command is specified using the -code, -data, -bss, -ucode, -udata, or -ubss command, a warning is
given and the section is located at the alignment boundary that is closest to the specified address, with its
low-order bits cleared to 0.
-code
sample1.o
sample2.o
0x0081000
0x00A0000
0x0090000
0x0010000
Fig. 12.5.3.3 Example of how an absolute object file is located
Before linkage
; Absolute object file
; Relocatable object file
sample1.o
sample2.o
CODE1
CODE2
DATA1
DATA2
BSS1
BSS2
n
using the -align command.
EPSON
After linkage
sample1.srf
CODE1
CODE2
DATA1
DATA2
BSS1
BSS2
(Link processing in lk33 Ver. 2.1 or earlier)
0x00A0000
0x0090000
0x0081000
0x0010000
0x0000000
CHAPTER 12: LINKER
197

Related parts for s5u1c33000c