 |
|
 |
RENESAS TOOL NEWS on December 16, 2004: RSO-M3T-NC308WA_3-041216D
A Note on Using the M3T-NC308WA and
M3T-NC30WA C-Compiler Packages
--On Using the -OFFTI Compile Option--
|
Please take note of the following problem in using the M3T-NC308WA and
M3T-NC30WA C-compiler packages:
- On using the -Oforward_function_to_inline (-OFFTI) compile option
- Products and Versions Concerned
M3T-NC308WA V.5.20 Release 1
(for the M32C/90, M32C/80 and M16C/80 series)
M3T-NC30WA V.5.30 Release 1
(for the M16C/60, M16C/30, M16C/Tiny, M16C/20, M16C/10, and R8C/Tiny series)
- Description
If compile options -Oforward_function_to_inline (-OFFTI) and -g are selected at the same time, debug information cannot be generated
though assembler code is generated properly.
- Workaround
Don't select compile option -OFFTI. And, if an inline function that is
forward-addressed is contained in the C-language program, change the
place of the inline function so that it can be backward-addressed.
Example Original:
-----------------------------------------------------------------------
inline void sub(void);
void main(void)
{
sub(); /* Forward-addressed inline function called */
}
inline void sub(void)
{
..............................................................
}
-----------------------------------------------------------------------
Example Modified:
-----------------------------------------------------------------------
inline void sub(void)
{
.................................................................
}
void main(void)
{
sub(); /* Backward-addressed inline function called */
}
-----------------------------------------------------------------------
- Schedule of Fixing the Problem
We plan to fix this problem in our next release of the products.
|
 |