pTAL Reference Manual (H06.08+)

Compiling and Linking pTAL Programs
HP pTAL Reference Manual523746-006
16-17
Compiling With Saved Global Data
Compiling With Saved Global Data
During program development or maintenance, you often need to change procedural
code or data without changing the global declarations. You can save the global data in
a file during a compilation session and then use the saved global data during a
subsequent compilation. You can shorten the compile time by not compiling global
declarations each time. For more information, see Saving and Using Global Data
Declarations on page 17-8.
Using the Code Coverage Tool
The Code Coverage Tool evaluates the code coverage provided by application test
cases. The tool uses information provided by a specially-instrumented object file to
produce a report that indicates which functions and blocks were executed, and how
many times each was executed.
Using the Code Coverage Tool requires a special compilation to produce an object file
containing the required instrumentation. To create such an object file, specify the
CODECOV directive in the compiler command line.
For details on using the Code Coverage Tool, see the
Code Coverage Tool Reference
Manual.
Note. This topic applies only to the pTAL compiler. If you are using the EpTAL compiler, see
Migrating from TNS/R to TNS/E
on page 17-11.
Note. The Code Coverage Tool is intended for data generation and collection in a test
environment only. The use of instrumented object code is not recommended for production
environments. Applications compiled with code coverage instrumentation will experience
greatly reduced performance.