 |
|
 |
MAEC TOOL NEWS:
MAECT-NC308WA-010516D
NC308WA V.3.10 Release 2 and NC30WA V.4.00 Release 2 Precautions
|
Please take note of the following problem in using C compilers (with an assembler and integrated development environment) NC308WA and NC30WA:
- On calling inline functions out of other ones
- Versions Concerned
| M16C/80 series MCUs | : NC308WA V.3.10 Release 2 |
| M16C/60 and /20 series MCUs | : NC30WA V.4.00 Release 2 |
- Description
- Compilation may not be executed with the following Windows' error message being displayed.
- "This program has performed an illegal operation . . . ."
- Conditions
- This problem occurs if the following three conditions are satisfied:
- (1) Out of inline function A is called inline function B.
- (2) No execution instructions are described after the call of inline function B up to the end of the source file.
- (3) Any of the optimizing options -O[3-5], -OR, and -OS is used at compilation.
[Example:]
----------------------------------------
void inline funcB(void)
{
// Processing
}
void inline funcA(void)
{
// Processing
funcB();
} // EOF
----------------------------------------
- Workaround
Use the -ONA option with -O[3-5], -OR, or -OS.
- Schedule of Fixing the Problem
We plan to fix this problem in our next release.
|
 |