TRACE32 Code Coverage - Evaluation

The embedded tools company
Trace-based Code Coverage
Trace-based Code Coverage with Source Code Analysis

Technical Support


TRACE32 supports a variety of code coverage metrics. For most metrics, the source files and the trace recording is sufficient. However, some metrics require additionally a source code analysis.



Trace-based Code Coverage


The following metrics can be directly verified based on the source files and the trace recording of the program execution:
  • Statement coverage
  • Function coverage
  • Object code coverage
Code coverage results are provided on module, function and source code level.



Trace-based Code Coverage with Source Code Analysis


The following metrics require a source code analysis (meta data) to verify the code coverage in addition to the source files and the trace recording of the program execution:
  • Modified condition/decision coverage
  • Call coverage
  • Decision coverage
  • Condition coverage
Lauterbach offers the t32cast command line tool to perform the source code analysis and to generate the meta data. t32cast is compiler independent and can easily integrated into the build process.


Modified condition/decision coverage

TRACE32 must know the structure of the decisions and their position in the source code in order to perform MC/DC. The t32cast command tool has to be used to generate this information, which is not part of the debug information generated by the compiler.

At the same time, it must be ensured that trace information is generated for all conditions. This is the case when each condition at the source code level is represented by a conditional jump at the object code level. This can be achieved by the appropriate compiler settings.

Copyright © 2021 Lauterbach GmbH, Altlaufstr.40, 85635 Höhenkirchen-Siegertsbrunn, Germany   Impressum     Privacy Policy
The information presented is intended to give overview information only.
Changes and technical enhancements or modifications can be made without notice. Report Errors
Last generated/modified: 01-Feb-2021