 |
|
 |
RENESAS TOOL NEWS on November 1, 2005: RSO-M3T-NC308WA-051101D
A Note on Using the C Compiler Packages
M3T-NC308WA and M3T-NC30WA |
Please take note of the following problem in using the C compiler packages M3T-NC308WA and M3T-NC30WA, which are used for the M16C family of MCUs:
- On placing functions in sections
- Products and Versions Concerned
M3T-NC308WA V.5.20 Release 1 and V.5.20 Release 02
(for the M32C/90 and the M32C/80 series; and the M16C/80 series)
M3T-NC30WA V.5.30 Release 1 and V.5.30 Release 02
(for the M16C/60, M16C/30, M16C/20, M16C/10, M16C/Tiny and R8C/Tiny series)
- Description
If the conditions described below are all satisfied in a file, the functions in the file may be placed in sections other than the specified ones.
Conditions:
| (1) |
|
Compile option -Oforward_function_to_inline (-OFFTI) is selected. |
| (2) |
|
Section names are changed using the #pragma SECTION directive. |
Example:
In this program, functions func_1() and func_2() are placed in the prog
section.
-----------------------------------------------------------------------
void func_1(void)
{
. . . . . . . . . . . . . . . . . .
}
#pragma SECTION program prog /* Condition (2) */
void func_2(void)
{
. . . . . . . . . . . . . . . . . .
}
------------------------------------------------------------------------
- Workaround
Don't select compile option -OFFTI for the file in which section names are changed using the #pragma SECTION directive.
- Schedule of Fixing the Problem
We plan to fix this problem in the release after next of the products.
|
 |