Renesas Technology, Tools FAQs
Last Updated: April 5, 2004
Document Number: 04030501_e
Q.
I want to output the results checked by SQMlint into report files while compiling several C language source files. How can I output
the results of each source file in a separate report file?
A.
Please use the HEW or TM integrated development environment.
To use HEW
For M3T-NC30, M3T-NC308:
(1)Select Options, then Renesas M16C Standard Tool Chain Menu.
(2)Select MISRA C Rule Check in the C tab category in the dialog.
(3)Set "[-r] Report file name:" as follows
$(CONFIGDIR)\$(PROJECTNAME).csv
For M3T-CC32R:
(1)Select Options, then Renesas M32R Standard Tool Chain Menu.
(2)Select MISRA C Rule Check in the C tab category in the dialog.
(3)Set "[-misra_report] Report file name:" as follows
$(CONFIGDIR)\$(PROJECTNAME).csv
To use TM
For M3T-NC30, M3T-NC308:
(1)Select Project, then Option Browser Menu.
(2)Select CFLAGS and click on [Mod...]
(3)Select [MISRA-C Checking Options] in the Option Changes category.
(4)Check the -sqmlint option, and set the parameter string as follows
-misra all -r $*.csv
For M3T-CC32R:
(1)Select Project, then Option Browser Menu.
(2)Select CFLAGS and click on [Mod...]
(3)Select [MISRA-C Checking Options] in the Option Changes category.
(4)Check the -misra_report option, and set the parameter string as follows
$*.csv
[Note]
To input the command from the command line, specify the report file name for each file you compile.
-------------------------------------------------------------
>nc308 -c test.c -sq -sqmlint "-misra all -r test.csv"
-------------------------------------------------------------
In other words, compile one C source file at a time. When the command line is executed in the following manner, only the
report results for test2.c are stored in the report.csv file.
-------------------------------------------------------------
>nc308 test1.c test2.c -sq -sqmlint "-misra all -r report.csv"
-------------------------------------------------------------
Top of Page | Back to Previous Page
Kommentare zu diesen Handbüchern