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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
12.6.3 Locating Blocks
Block location by default settings
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
Each relocatable object file has one instance each of CODE, DATA, and BSS sections.
In lk33 Ver. 3.0 mode, sections of the same type in the specified multiple relocatable object files can be
defined as one block and can then be located at the address that is specified for each of those blocks.
Sections in relocatable object files where they are not assigned to blocks, as well as sections in relocatable
object files where they are defined as blocks but with no addresses specified, are mapped to default blocks
named as shown below.
DEFAULT_CODE: Default block for the CODE section
DEFAULT_DATA: Default block for the DATA section
DEFAULT_BSS:
Within the block, sections are located in the order in which input files in the command file are written.
The start address (absolute address after being linked) of each block including default blocks can be
specified using a linker command. If not specified, the start address is determined in the manner shown
below.
CODE block: Located beginning with address 0x0c00000
DATA block: After locating all CODE sections, this block is located immediately after the CODE block
BSS block:
For example, if two relocatable object files sample1.o and sample2.o are linked using default settings (i.e.,
no block definitions, with no addresses specified), each section is located in the manner shown below.
Example: Command file
To locate a default block that does not begin with the default address shown above, specify its start address
using the -addr command. For example, if the start addresses of the CODE and BSS blocks in Figure
12.6.3.1 need to be changed to 0x0080000 and 0x0010000, respectively, enter a command file like the one
shown below to link the files.
Example: Command file
DEFAULT_CODE block: Located beginning with address 0x0080000
DEFAULT_DATA block: After locating DEFAULT_CODE block, this block is located immediately
DEFAULT_BSS block:
Before linkage
-v3
sample1.o
sample2.o
-v3
-addr 0x0010000 {DEFAULT_BSS}
-addr 0x0080000 {DEFAULT_CODE DEFAULT_DATA}
sample1.o
sample2.o
sample1.o
sample2.o
CODE1
CODE2
DATA1
DATA2
BSS1
BSS2
that is located at the most significant address.
Located beginning with address 0x0000000
Fig. 12.6.3.1 Example of how files are linked with default settings
Default block for the BSS section
after that CODE block.
Located beginning with address 0x0010000
CODE2
CODE1
DATA2
DATA1
Block
BSS2
BSS1
DEFAULT_DATA
DEFAULT_CODE
DEFAULT_BSS
EPSON
After linkage
sample1.srf
CODE2
CODE1
DATA2
DATA1
BSS2
BSS1
(Link processing in lk33 Ver. 3.0)
0x0C00000
0x0000000
CHAPTER 12: LINKER
217

Related parts for s5u1c33000c