TRACE32 Code Coverage - Evaluation


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




Support
Technical Support
 
TOP

Introduction


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.

Support

 
TOP

Trace-based Code Coverage


Support

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

Support

 
TOP

Trace-based Code Coverage with Source Code Analysis


Support

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:
  • MC/DC coverage
  • Call coverage
  • Decision 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.

Support

MC/DC Coverage

TRACE32 must know the structure of the decisions and their position in the source code in order to perform MC/DC coverage. 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 © 2018 Lauterbach GmbH, Altlaufstr.40, D-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: 15-Nov-2018