Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
RENESAS TOOL NEWS on August 1, 2004: RSO-M3T-NC308WA_2-040801D

A Note on Using C-Compiler Packages
M3T-NC308WA and M3T-NC30WA

--On Using Options for the SQMlint--

Please take note of the following problem in using the M3T-NC308WA and M3T-NC30WA C-compiler packages:
  • On using options for the SQMlint (a MISRA C rule-checker)


  1. Products and Versions Concerned
    M3T-NC308WA V.5.20 Release 1
        for the M32C/80, and M16C/80 series MCUs
    M3T-NC30WA V.5.30 Release 1
        for the M16C/60, M16C/30, M16C/Tiny, M16C/20, M16C/10, and
        R8C/Tiny series MCUs


  2. Description
    If any option for the SQMlint is used in the C compiler, error message "illegal command option" appears at executing the SQMlint.

    2.1 Conditions
    This problem occurs if any of the following options for the SQMlint is used:
    • -misra_all
    • -misra_required
    • -misra_apply
    • -misra_ignore
    • -misra_required_add
    • -misra_required_remove

    2.2 Example
    In the case where any option is typed on the command line:
    -------------------------------------------------------------
    C:\MTOOL>nc308 -misra_all sample.c
    M32C/80,M16C/80 Series NC308 COMPILER V.5.20 Release 1
    COPYRIGHT(C) 1999(2003,2004) RENESAS TECHNOLOGY CORPORATION
    AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
    
    sample.c
    illegal command option
    
    C:\MTOOL>
    -------------------------------------------------------------

  3. Workaround
    If you use any option for the SQMlint, use it along with the "-sq" and "-sqmlint" options as follows (for details of the "-sq" and "-sqmlint" options, see Section 3, "How to Use the SQMLint" in User's Manual of MISRA C Rule Checker SQMlint V.1.00):

    (1) In the case where any option is typed on the command line Type any option in such a form as -sq -sqmlint "xx" where xx denotes an option for the SQMlint.
    -------------------------------------------------------------
    C:\MTOOL>nc308 -sq -sqmlint "-misra all" sample.c
    M32C/80,M16C/80 Series NC308 COMPILER V.5.20 Release 1
    COPYRIGHT(C) 1999(2003,2004) RENESAS TECHNOLOGY CORPORATION
    AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
    
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
    
    C:\MTOOL>
    -------------------------------------------------------------

    (2) In the case where the High-performance Embedded Workshop (an integrated development environment) is used
    1. Open the Options menu and select the Renesas M32C Standard Toolchain (*) command to open the Renesas M32C Standard Toolchain dialog box.
    2. Click the C tab in the dialog box.
    3. Select "Other" from the Category drop-down list.
    4. Type any option in such a form as -sq -sqmlint "xx" in the User defined options text box. Here xx denotes an option for the SQMlint.
    5. Click the OK button.
    NOTE:
    * For Renesas M32C Standard Toolchain read Renesas M16C Standard Toolchain if you don't use the M3T-NC308WA but the M3T-NC30WA.

    (3) In the case where the TM (an integrated development environment) is used
    1. In the Project Editor window, open the Project menu and select the Option Browser command to open the Option Browser dialog box.
    2. Click the New button. The Options dialog box appears.
    3. Select "MISRA-C Check Options" in the Categories drop-down list.
      The list of the MISRA-C check options is displayed.
    4. Check the -sqmlint check box in the above list to open the Select Parameter <-sqmlint> dialog box.
    5. Type any option for the SQMlint in the Parameter String text box. Then click the OK button.
    6. Type "-sq" in the Others text box in the Options dialog box.


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





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