Renesas Technology, Tools FAQs
Last Updated: August 7, 2000
Document Number: 01051235_e
Q.
How can I make each function that I describe with C language into an absolute address (fixed address)?
A.
In NC30WA, the functions are located in the program section. So, to locate the functions at absolute addresses, you will need to
specify the program section with an absolute address. Specify the assigned address in the program section using the pseudo
instruction .org after the ".section program" line in the sect30.inc file.
[Example: When assigning a function to address 10000H, specify the function in the sect30.inc file as follows.]
.section program
.org 10000H
When assigning each function to a separate address, using the "#pragma SECTION" for the function you are assigning, create a
section name other than "program section", and specify the function to be assigned to the address under the new section name.
[Example: When assigning function func() to section "program1" and assigning that section to address 20000H, ]
Specify the section name where the function will be assigned, as follows:
#pragma SECTION program program1
func()
{
}
1.
Specify the assigned section address in the sect30.inc file, as follows:
.section program1
.org 20000H
2.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Kommentare zu diesen Handbüchern