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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 12: LINKER
(Link processing in lk33 Ver. 2.1 or earlier)
To locate sections in a specific file beginning with a specific address...
Specifying the start address with a section name
196
You can specify a relocatable object file by using the -code { }, -data { }, and -bss { } commands, so that
only the sections of that file will be located beginning with the specified address. Multiple files can be
specified, in which case the sections are located in the order that they are specified beginning with the start
address.
The command formats are shown below:
-code
-data
-bss
Example: Command file
In all relocatable object files other than those specified with the -code { }, -data { }, and -bss { } commands,
sections are located at default addresses or addresses set by -code <Address/Section name>, -data
<Address/Section name>, and -bss <Address/Section name>.
The -section command can be used to define a section name and its start address.
The command format is shown below:
-section
The <Section name> defined by the -section command can be used in place of <Address> specified by the
-code, -data, and -bss commands or the -code { }, -data { }, and -bss { } commands described above.
However, these addresses must first be defined by the -section command before they can be used.
Example: -section CODE1 = 0x0c00100
The start address specified for each section by the -section command is the start address of each section.
Specification of <Address> in the -section command cannot be omitted.
When a section name is defined, the lk33 generates three types of section symbols indicating its start
address, end address, and size (refer to Section 12.5.5). These symbols can be used at the source as global
symbols.
-code
-bss
-code
sample1.o
sample2.o
sample3.o
<Address> {<File name> ...}
<Address> {<File name> ...}
<Address> {<File name> ...}
-section DATA1 = 0x0c01000
-code
-data
<Section name> = <Address>
0x0080000
0x0000000
0x0c00000 {sample2.o sample3.o}
Fig. 12.5.3.2 Example of how sections in a specific file are located
CODE1 {test1.o} ; Locates the CODE section of the test1.o in section CODE1.
DATA1 {test1.o} ; Locates the DATA section of the test1.o in section DATA1.
Before linkage
sample1.o
sample2.o
sample3.o
CODE1
CODE2
CODE3
DATA1
DATA2
DATA3
BSS1
BSS2
BSS3
Sets a CODE section.
Sets a DATA section.
Sets a BSS section.
EPSON
After linkage
sample1.srf
CODE3
CODE2
CODE1
DATA3
DATA2
DATA1
BSS3
BSS2
BSS1
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
0x0C00000
0x0080000
0x0000000
S5U1C33000C MANUAL

Related parts for s5u1c33000c