Renesas Technology, Tools FAQs
Last Updated: March 21, 2000
Document Number: 01051292_e
Q.
How can a section be divided into multiple sections? Currently my program is sectioned into 001000H to 00F00FH and 010000H to
01EFFFFH. But I want to place my program from 130000H as well.
A.
One continuous section can not be divided into multiple separate sections. But each individual function can be placed in different
sections.
For example, special functions can be placed in a particular section and the section can be assigned to 13000h with .org.
[Procedure]
Pick up the functions you want to place in address 13000h (external ROM) as a separate file. The file does not need to be a
single file.
1.
In the top of the file, insert statement "#pragma SECTION program mysection (modified section name)". (You can use any
section name.)
* With this step, the program section is changed to mysection_N and mysection_F.
* This procedure is applied just for the program section. For the data section, you need to perform the same step separately.
2.
Add address data of mysection_N and mysection_F to section.inc.
* Standard libraries are placed in section program_F. We recommend keeping the default section until you confirm that no
data remains in sections program_N and program_F. You can confirm them in the map file.
[Assumptions]
Please refer to the [NC77 Memory Allocation] section in the User's Manual for details concerning naming conventions
of pre-defined sections.
❍
The near-defined functions are placed in section program_N as the defaultsetting. In the same manner, far-defined
functions are placed in section program_F.
❍
When statement "#pragma SECTION program mysection" is used, the near-defined function is placed in my section_N
and the far_defined function is placed in mysection_F.
❍
3.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales