Version 6.60 adds support for IAR Systems’ static analysis add-on product C-STAT. Completely integrated in the IAR Embedded Workbench IDE, C-STAT can perform numerous checks for compliance with rules as defined by the MISRA C:2004, MISRA C++:2008 and MISRA C:2012 coding standards, as well as rules based on, for example, CWE (the Common Weakness Enumeration) and CERT C/C++. By using static analysis, developers can identify errors such as memory leaks, access violations, arithmetic errors, and array and string overruns at an early stage to ensure code quality and minimise the impact of errors on the finished product and on the project timeline.
Stack usage analysis has also been introduced. As the stack is a fundamental property of an embedded application, setting it up properly is essential for ensuring the application’s stability and reliability. However, calculating the stack space is notoriously hard for all but the smallest of systems. This challenging task can be greatly simplified by having access to information about the worst-case maximum stack depth of the application. Enabling stack usage analysis in IAR Embedded Workbench provides just that, adding listings of the maximum stack depth for each call graph root to the linker map file. The analysis process can be customised to take into account such constructs as calls via function pointers and recursion.
IAR Systems; www.iar.com/iar-embedded-workbench/atmel/avr/