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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
12.5.3 Locating Sections
Default location of relocatable file
To specify the start address of a relocatable section...
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
Each relocatable object file has one CODE, one DATA, and one BSS section.
When multiple relocatable object files are linked, sections of the same type in all files except a specified
file are combined into one section. Entries within each section are arranged in the order in which the input
files are written in the command file (or command line).
The start address of each section (absolute address after linkage) can be specified by a linker command. If
this address is not specified, it is determined in the following manner:
CODE section: The CODE section is located beginning with address 0x0080000 (area 3, start address of
DATA section: After all CODE sections in the input files are located, the DATA section is located
BSS section:
For example, if two relocatable object files, sample1.o and sample2.o, are linked without specifying a
section address, each section in these files is located as shown below. Each section in each object file starts
at a 4-byte boundary address.
Example: lk33 sample1.o sample2.o
When an absolute object file is generated by the lk33, the CODE, DATA, and BSS sections are output to the
file in that order. For the contents of the object files thus output, refer to Appendix, "srf33 File Structure".
If you want sections to be located beginning with an address that is not the default address shown above,
use the -code, -data, or -bss commands to specify the start address of each type of section.
The command formats are shown below:
-code
-data
-bss
For example, if you want the start addresses of the CODE and the BSS sections in Figure 12.5.3.1 to be
changed to address 0x0c00000 and address 0x0010000, respectively, input a command file like the one
shown below before linking the object files.
Example: Command file
-code
-bss
sample1.o
sample2.o
<Address>
<Address>
<Address>
internal ROM).
immediately following the CODE section that is located at the highest address.
The BSS section is located beginning with address 0x0000000 (area 0, start address of
internal RAM).
0x0c00000
0x0010000
Before linkage
Fig. 12.5.3.1 Example of linkage by default configuration
sample1.o
sample2.o
CODE1
CODE2
DATA1
DATA2
BSS1
BSS2
Sets a CODE section.
Sets a DATA section.
Sets a BSS section.
EPSON
After linkage
sample1.srf
CODE2
CODE1
DATA2
DATA1
BSS2
BSS1
(Link processing in lk33 Ver. 2.1 or earlier)
0x0080000
0x0000000
CHAPTER 12: LINKER
195

Related parts for s5u1c33000c