noft Manual (G06.26+)

noft Utility
noft Manual528273-001
2-7
Debugging With noft
Debugging With noft
The dumping options (listed in Table 2-2 on page 2-4) can be useful when debugging
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 2-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;
}