According to IAR, embedded developers are concerned about a range of issues, including adherence to coding standards and increased application complexity that might interfere with code quality. Static code analysis tools like C-STAT address these issues by detecting potential code errors in complex applications and by ensuring compliance with coding standards for embedded applications.
C-STAT provides analysis results directly in the IAR Embedded Workbench IDE. It checks compliance with rules as defined by coding standards including MISRA C:2004, MISRA C++:2008 and MISRA C:2012, as well as hundreds of rules based on CWE (the Common Weakness Enumeration) and CERT C/C++.
Users can select which rule-set or which individual rules to check the code against. The tool detects potential code errors including memory leaks, access violations, arithmetic errors and array and string overruns. Finding errors early means developers take control of their code and lower the risk of breaking the budget and deadline for a project.