Technical information

Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 15
No. a4
Using PIC, the compiler generates incorrect addresses for functions in different sections
Version Information
V3.3
Details
In case PIC is used, the compiler generates incorrect addresses for functions in different sections
and modules.
Example:
a.c:
extern void init();
void foo(void){};
void main(void)
{
init();
}
b.c:
#pragma ghs section text=”.mytext”
volatile int addr;
extern void foo(void);
void init()
{
addr = (int)foo;
}
This will generate an incorrect result for “addr” in function “init()”.
Workaround
Use option obj to compile in object mode.
A new compiler, which fixes this problem, can be downloaded from the NEC WEB page(s) at
http://www.renesas.eu/updates?id=443