Debugging With Noft; Example - HP nld Manual

Table of Contents

Advertisement

noft Utility

Debugging With noft

The dumping options (listed in
optimized native object code, especially when you must debug code at the RISC
instruction-level.
Note. You must use Visual Inspect, rather than Inspect, to debug PIC executable files.

Example 4-3

is followed by DUMPPROC listings of its compute() function compiled at
optimization levels 0, 1, and 2. After the listings is a comparison of optimization levels.
Example 4-3. C Program
long compute(long a[]);
int main (void)
{
long z[10];
long x;
x=compute(z);
return 0;
}
long compute(long a[])
{
long b;
int c,i;
b=0;
for (i=0; i<20; i++)
b += a[i];
return b;
}
Table 4-2
on page 4-5) can be useful when debugging
nld and noft Manual—520384-003
4 -7
Debugging With noft

Advertisement

Table of Contents
loading

This manual is also suitable for:

Noft

Table of Contents