Code Coverage for Embedded Apps using Squish Coco
Did you know Squish Coco can also perform code coverage on embedded environments?
The recent blog entry Code Coverage with the ARM C/C++ Compiler discusses how.
Here's an excerpt:
Developing for an embedded environment can often leave you juggling for space. Squish Coco is designed with such constraints in mind, making instrumentation and code coverage possible even on embedded environments.
Squish Coco separates the coverage data creation from the analysis, enabling users performing cross-compilation to host the compiler on a separate platform. The execution data is gathered on the target platform, while the analysis occurs on the desktop platform and can be viewed using the CoverageBrowser.
The detection of sequential blocks creates a more compact instrumentation than the traditional line coverage approach. Additional size reductions are implemented using command-line parameters to disable the condition, decision and statement coverage analysis. Because Squish Coco instruments the source code utilizing the userís toolchain, both debug and release, or optimized code can be used. The only requirement for the target system is the malloc() function. Filesystems and Ethernet devices are not necessary.
This article demonstrates how to instrument a small ARM application that reads data from an AD device on a simulator.
Read complete blog article here: Code Coverage with the ARM C/C++ Compiler | froglogic blog
Tags for this Thread