Inspect Manual
Using Inspect With Accelerated Programs on TNS/R
Systems
Inspect Manual—429164-006
16-6
Accelerator Debugging Options
Accelerator Debugging Options
The accelerator debugging option you use slightly affects source-level debugging and
significantly affects machine-level debugging. It affects the organization of TNS/R
instructions, and the number of register-exact points in your program. The accelerator
offers you two debugging options—ProcDebug and StmtDebug.
ProcDebug
ProcDebug, the default optimization level, results in optimizations that may blur
statement boundaries. Blurred statement boundaries result in some statements
becoming inaccessible for debugging purposes. TNS/R instructions for statements may
be interleaved as long as all the stores for a previous statement are completed before
the next statement. These characteristics are unique to programs accelerated with the
ProcDebug option:
Memory-exact points exist at the beginning of most statements and at some
locations within statements.
Register-exact points only occur as required by the accelerator. They often follow
procedure calls within statements.
Code optimized with the ProcDebug option produces more efficient TNS/R code
than code optimized with the StmtDebug option.
StmtDebug
At this level of optimization, the TNS/R code that is generated for individual TNS
instructions is not necessarily grouped in a contiguous block. Instructions may be
rearranged to fill load and branch delay slots. TNS/R code for different statements is
not interleaved. These characteristics are unique to programs accelerated with the
StmtDebug option:
Register-exact points occur at the beginning of most statements and at some
locations within statements. As a result, the state of memory is consistent at the
beginning of most statements, as is the view of the TNS machine state.
Code optimized with the StmtDebug option is not as fast or as efficient as code
generated using ProcDebug.
Summary
This table summarizes the various levels at which Accelerated programs may be
debugged and your capabilities at the various levels.