Epson S5U1C17001C Manual page 445

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

The section map is shown in Figure 9.4.2.1.
__START_text_foo2_lma+SIZEOF(.text_foo2)=__START_text_foo3_lma
__START_text_foo1_lma+SIZEOF(.text_foo1)=__START_text_foo2_lma
__START_data_lma+SIZEOF(.data)=__START_text_foo1_lma
__END_data=__START_text_foo1/foo2/foo3
The substance of the .data section is placed on the LMA in the ROM, and it must be copied to the VMA in
the RAM (immediately following the .bss section) before it can be used. The .data section (VMA) in the
RAM is a virtual section that does not exist when the program starts executing. This method should be used for
handling variables that have an initial value. In this example, the .data sections in all the files are combined
into one section.
.text_foo1 is the .text section in the foo1.o file. Its actual code is located at the LMA in the ROM and
is executed at the VMA in the RAM. Also the .text_foo2 and .text_foo3 sections are used similarly
and the same VMA is set for these three sections. The RAM area for .text_foo1/2/3 is a shared section
used for executing multiple .text sections by replacing the codes. A program cache for high-speed program
execution is realized in this method. The .text sections in other files than these three files are located in
the .text section that follows the .rodata section (0x8000–) and are executed at the stored address in the
ROM.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
__END_text=__START_data_lma
__END_rodata=__START_text
__START_rodata=0x8000
__END_text_foo1/foo2/foo3
__END_bss=__START_data
__START_bss=0x0
Figure 9.4.2.1 Memory map
EPSOn
ROM
foo3 – .text_foo3
LMA
foo2 – .text_foo2
LMA
foo1 – .text_foo1
LMA
∗ – .data
LMA
∗ – .text
LMA=VMA
∗ – .rodata
LMA=VMA
RAM
foo1/foo2/foo3 –
VMA
.text_foo1/foo2/foo3
∗ – .data
VMA
∗ – .bss
VMA
9 linkEr
Copy before
9
using.
Linker
Shared section
Virtual section
9-5

Advertisement

Table of Contents
loading

Table of Contents