Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)

With the dynamic checker, you can monitor your application while it is running. All calls to system
services are monitored to ensure they are portable within the bounds specified by standards. Pointer
use is also checked by the dynamic checker.
Code Coverage Tool
The Code Coverage Tool is a utility program that you can use either to evaluate the code coverage
provided by test cases or to understand what parts of an application are used, or most heavily
used, under a representative workload.
The code generator used by COBOL, pTAL, and C/C++ compilers on NS-series servers can now
create instrumented object files. Such object files contain extra code that records which functions
and blocks are executed, and how many times each is executed. The Code Coverage Tool uses
this information to produce a report indicating what code in a program file or DLL was actually
executed during one or more invocations. The code coverage report is a set of HTML files that you
can view with any standard HTML browser.
NOTE: The Code Coverage Tool is intended for data generation and collection in a test
environment only. The use of Cover-enabled code is not recommended for production environments.
Applications compiled with code coverage instrumentation will experience greatly reduced
performance.
No source code changes are needed to instrument an application. The only required changes are
in the commands used to compile and link the application. If you choose to instrument only a subset
of your application, you specify code-coverage compiler options for only that subset of your source
files.
You can compile your application on the Guardian, NonStop Open System Services (OSS), or
Windows platform. You must execute the program on either the Guardian or the OSS platform.
The Code Coverage Tool components, used to assemble and present the code coverage data, run
on the Windows platform.
This tool is supported for systems running H-series or J-series RVUs only. For more information about
this tool, see the Code Coverage Tool Reference Manual.
Code Coverage Tool 51