Inspect Manual
Using Inspect With TNS/R Native Programs
Inspect Manual—429164-006
17-14
Examples
This example illustrates that two instructions have been moved into statement #33
from the prolog code at statement #28. The same is true for statement #32.1.
The INFO LOCATION command can be used to display information about the
statements of a procedure.
This example illustrates that statements 1 and 3 have been affected by some type
of compiler optimization. Inspect will emit warning 198 whenever it encounters one
of these statements.
Contrast the previous output with the same procedure compiled at optimization 0.
$VOL SUBVOL 61> RUND PROG
INSPECT - Symbolic Debugger - T9673D40 - (29JUL03) System \SYS
Copyright Tandem Computers Incorporated 1983, 1985-1995
INSPECT
175,09,00207 PROG #M.#33(FILE)
** Inspect warning 198 ** Results might be unexpected due to optimization.
Executing command file $VOL.SUBVOL.INSPCSTM
-PROG-SOURCE ICODE FOR 2 STATEMENTS
*#33 Local^1 := Local^1 / 2;
#33 00000000 LI t7,80
#33 00000000 LI t7,80
#28 - 00000004 ADDIU sp,sp,-64
#32.1 - 00000008 LI t6,160
#28 - 0000000C SW ra,52(sp)
#32.1 - 00000010 SH t6,62(sp)
#33 00000014 LI at,0x8000
#33 00000018 SLT at,t7,at
#33 0000001C BNE at,$0,0x70000314
#33 00000020 NOP
#33 00000024 BREAK BOUNDS
#33 00000028 SLTI at,t7,-32768
#33 0000002C BEQ at,$0,0x70000324
#33 00000030 NOP
#33 00000034 BREAK BOUNDS
#33 00000038 SH t7,62(sp)
#34 CALL A (Def^1, Local^2);
#34 0000003C LI a0,10
#34 00000040 JAL 0x70000220
#34 00000044 ADDIU a1,sp,60
-PROGC-INFO LOCATION *
Scope: M
Compile File: \SYS.$VOL.SUBVOL.FILE Modified:
1995-08-03 17:13:42.00
B y t e
Num Line Offset Optimize Verb
1 #33 %0 Merged
2 #34 %74
3 #38 %110 Merged
4 #38.1 %200
5 #40 %214