Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
MESC TOOL NEWS: MESCT-NC308WA_1-000201D

NC308WA, NC30WA, NC79WA, NC77WA
Precautions

Please take note of the following problem in using C compilers (with assembler and integrated development environment) NC308WA, NC30WA, NC79WA, and NC77WA:


  1. Products Concerned
    • C compiler for the M16C/80 series MCUs:
                 NC308WA V.1.00 Release 1 -- V.2.00 Release 1
    • C compiler for the M16C/60 and M16C/20 series MCUs:
                 NC30WA V.2.00 Release 1 -- V.3.20 Release 1
    • C compiler for the 7900 series MCUs:
                 NC79WA V.2.00 Release 1 -- V.3.20 Release 1
    • C compiler for the 77xx series MCUs:
                 NC77WA V.4.00 Release 1 -- V.5.20 Release 1


  2. Problem
    When programs containing variables that are declared to be "const" are compiled, system errors may arise.
    2.1 Conditions
    This problem occurs if the following two conditions are satisfied:
    (1) A variable declared to be "const" is assigned the initial value enclosed in curly braces {}.
    Note that these braces for initializing aggregates, such as an array, are irrelevant to this problem.
    (2) Any of optimizing options "-Oconst", "-O4", and "-O5" is used at compilation.


    2.2 Example
         -----------------------------------------------------------------
           const int a={0x0001};
           main()
           {
                 int i=a;
           }
         -----------------------------------------------------------------
    
  3. Workaround
    When declaring variables to be "const", initialize them without {}.

  4. Schedule of Fixing Problem
    We plan to fix this problem in our next release.





© 2008. Renesas Technology Corp., All rights reserved. Privacy | Legal