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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
12.5.5 Section Symbols
The lk33 can generate section symbols (global symbols) that indicate the addresses and sizes of located sections.
These symbols can be used in the source.
Default DATA section symbol
Note: __START_DEFAULT.DATA, __END_DEFAULT.DATA and __SIZEOF_DEFAULT.DATA are
Creating section symbols using the -objsym command
Section name by -section command
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
Unless the -data command is specified, the default data section (located following the CODE section) has
the following section symbols automatically generated:
_ _ START_DEFAULT_DATA
_ _ END_DEFAULT_DATA
_ _ SIZEOF_DEFAULT_DATA
When the -objsym command is written in a command file, the lk33 generates the following symbols for
each section in each input file to indicate section information after relocation:
_ _ START_<File name>_<Section>
_ _ END_<File name>_<Section>
_ _ SIZEOF_<File name>_<Section> Defines the size (in bytes) of a relocated section.
Example: If the input file name is "test.o", the start address of the CODE section is 0x0c00000, and the size
The path and extension of <File name> are cut irrespective of how they are written in a command file. The
start address and size defined to a symbol are the same as the contents output to the link map file (real data
address), and the end address is determined by the "start address" + "size".
When a section name is defined by the -section command, the following symbols are created to indicate the
information of the named section regardless of whether a -objsym command is specified:
_ _ START_<Section name>
_ _ END_<Section name>
_ _ SIZEOF_<Section name>
Here, <Section name> is the name specified by the -section command.
The start address defined to a symbol is the address that is specified by the -section command or an address
immediately following the end of a default BSS section.
The size in the case of virtual sections (-ucode, -udata) equals the total size of the located sections. The size
in the case of shared sections (-ucode { }, -udata { }, -ubss { }) is the same as that of the largest section
among those located.
The end address is determined by the "start address" + "size".
also generated for compatibility. These symbol names can not be used in C source because
they contains ".". Use them only in assembly sources.
Symbol name
__START_test_code
__END_test_code
__SIZEOF_test_code
is 0x100
Symbol value
0x0c00000
0x0c00100
0x100
Defines the start address of a named section.
Defines the end address of a named section.
Defines the size (in bytes) of a named section.
Defines the start address of the default DATA section.
Defines the end address of a default DATA section.
Defines the size (in bytes) of the default DATA section.
Defines the start address of a relocated section.
Defines an address next to the end address of a relocated section.
EPSON
(Link processing in lk33 Ver. 2.1 or earlier)
CHAPTER 12: LINKER
201

Related parts for s5u1c33000c