Various ways to use C-STAT
C-STAT is an integral part of the IAR Embedded Workbench IDE:
You specify which packages of checks to perform in the Select C-STAT Checks dialog box.
You perform a static analysis by choosing the appropriate commands from the Project>C-STAT Static Analysis menu.
You can view the result of the performed analysis in the C-STAT Messages window.
You can create a report in HTML format by choosing the appropriate commands from the Project>C-STAT Static Analysis menu.
C-STAT can also be used from the command line, which is useful if you build your project using a make file:
ichecks.exe—use theicheckstool to generate a manifest file that contains only the checks that you want to perform.icstat.exe—use theicstattool to perform a C-STAT static analysis on a project, with the manifest file as input.ireport.exe—use theireporttool to generate an HTML report of a previously performed analysis.
Finally, you can use C-STAT together with the IAR Command Line Build Utility (iarbuild.exe) for regression testing.