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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
Shared section
Before linkage
Named U section
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
sample1.o
sample2.o
CODE1
CODE2
DATA1
DATA2
BSS1
BSS2
By specifying a relocatable object file with the -ucode { }, -udata { }, or -ubss { } commands, you can
locate only the sections in that file, parallel to a shared section. Multiple files are located beginning with the
same start address.
-ucode
-udata
-ubss
Example: Command file
A U section can have its name defined by the -section command. The command format is shown below.
Format 1) -section <Section name>
Format 2) -section <Section name> = <Address>
This command creates one U section that is assigned a specified name. Multiple U sections can be defined
in this way. For this purpose, write the -section command as many times as necessary.
The names defined here can be used in place of <Address> of the -ucode, -udata, and -ubss commands or
the -ucode { }, -udata { }, and -ubss { } commands described above. However, these addresses must first be
defined by the -section command before they can be used.
Example:
The start address of a defined U section is set as follows:
Format 1) Address immediately following the end of the default BSS section. This address is determined
Format 2) Specified address
When a section name is defined, the lk33 generates three types of section symbols indicating its start
address, end address, and size (see the next section). Since these symbols can be used in the source as
global symbols, you can use them to copy real data.
-section CACHE = 0x300
-section INITDATA = 0x100
-ucode
-udata
-code
-ucode
sample1.o
sample2.o
<Address> {<File name> ...}
<Address> {<File name> ...}
<Address> {<File name> ...}
after locating all BSS sections in the input object files.
CACHE {test1.o}
INITDATA {test1.o} ; Locates the DATA section of the test1.o to U section INITDATA.
0x0c00000
0x000a000 {sample1.o sample2.o}
Fig. 12.5.4.2 Example of how data is located in a shared section
After linkage
sample1.srf
CODE2
CODE1
DATA2
DATA1
BSS2
BSS1
0x0C00000
Shared section
0x000A000
0x0000000
; Locates the CODE section of the test1.o to U section CACHE.
Sets a shared CODE section.
Sets a shared DATA section.
Sets a shared BSS section.
EPSON
At CODE1 execution
CODE2
CODE1
CODE1
DATA2
DATA1
BSS2
BSS1
(Link processing in lk33 Ver. 2.1 or earlier)
0x0000000
0x0C00000
0x000A000
Real data
Execution
address
At CODE2 execution
CODE2
CODE1
CODE2
DATA2
DATA1
BSS2
BSS1
CHAPTER 12: LINKER
0x0C00000
0x0000000
0x000A000
Real data
Execution
address
199

Related parts for s5u1c33000c