You can use PureCoverage at the same time that you use Rational® Purify®, Rational Software's run-time error detection application. PureCoverage shows you exactly what parts of your code you have not checked for errors.
To use PureCoverage with Purify, add both product names to the beginning of your link line. Include all options with the programs to which they refer. For example:
%
purify <purifyoptions> purecov <purecovoptions> \
cc -g hello_world.c -o hello_world
In this case, both <purifyoptions> and <purecovoptions> are used, as well as the values of the environment variables PURIFYOPTIONS, PURECOVOPTIONS, and PUREOPTIONS, in that order of precedence. Where there are conflicting values, the first value seen is used. A value in <purifyoptions> overrides a value in <purecovoptions>. These options override environment variables.
When you run your program, you see both the Purify banner and the PureCoverage banner. Purify reports memory access errors and memory leaks as the program runs.
PureCoverage test coverage data is available after the program terminates. You can display it as you usually do (see Viewing coverage data), but you can also open the PureCoverage Viewer from the Purify Viewer by clicking the PureCoverage icon in the toolbar.
Note:
The instruction sequences that PureCoverage inserts during instrumentation are not compatible with the instruction sequences inserted by Rational Quantify®, Rational Software's performance analysis product. You cannot use PureCoverage and Quantify at the same time.