Skip to main content

IAR Embedded Workbench for RX 5.20

Various ways to use C-STAT

In this section:

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 the ichecks tool to generate a manifest file that contains only the checks that you want to perform.

  • icstat.exe—use the icstat tool to perform a C-STAT static analysis on a project, with the manifest file as input.

  • ireport.exe—use the ireport tool 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.