Optimize 0 Listing - HP nld Manual

Table of Contents

Advertisement

noft Utility
Example 4-4
shows the noft output for the compute() function in
page 4-7 compiled at optimize 0. The native compilers perform no optimizations at
optimize 0.
Example 4-4. Optimize 0 Listing
noft> dumpproc compute
********
Procedure
-------------------------------------------------------------------
14 long compute(long a[])
[compute
15 {
16 long b;
17 int c,i;
18 b=0;
[compute
19 for (i=0; i<20; i++)
[compute
20
b += a[i];
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
[compute
21
return b;
[compute
[compute
[compute
22
}
[compute
[compute
Innerlist Dump Of Procedure: compute
Src Line
Address
14000]
0x70000470
18000]
0x70000474
19000]
0x70000478
20000]
0x7000047c
20000]
0x70000480
20000]
0x70000484
20000]
0x70000488
20000]
0x7000048c
20000]
0x70000490
20000]
0x70000494
20000]
0x70000498
20000]
0x7000049c
20000]
0x700004a0
20000]
0x700004a4
20000]
0x700004a8
20000]
0x700004ac
20000]
0x700004b0
21000]
0x700004b4
21000]
0x700004b8
21000]
0x700004bc
22000]
0x700004c0
22000]
0x700004c4
nld and noft Manual—520384-003
Long Word
Instructions
0x27bdfff8
addiu
0xafa00004
sw
0xafa00000
sw
0x8fae0004
lw
0x8faf0000
lw
0000000000
nop
0x000fc080
sll
0x0098c821
addu
0x8f280000
lw
0000000000
nop
0x01c84821
addu
0xafa90004
sw
0x25ea0001
addiu
0xafaa0000
sw
0x29410014
slti
0x1420fff3
bne
0000000000
nop
0x8fa20004
lw
0x10000001
b
0000000000
nop
0x03e00008
jr
0x27bd0008
addiu
4 -8
Debugging With noft
Example 4-3
on
********
sp,sp,0xfffffff8
zero,0x4(sp)
zero,0(sp)
t6,0x4(sp)
t7,0(sp)
t8,t7,2
t9,a0,t8
t0,0(t9)
t1,t6,t0
t1,0x4(sp)
t2,t7,0x1
t2,0(sp)
at,t2,0x14
at,zero,0x7000047c
v0,0x4(sp)
0x700004c0
ra
sp,sp,0x8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Noft

Table of Contents