nld and noft Manual
noft Options
nld and noft Manual—520384-003
5-34
LISTUNREFERENCED or LUR
The C program in Example 5-25 is equivalent to the pTAL program in Example 5-23 on
page 5-33.
If the program in Example 5-25 is compiled and made executable, and the program file
is designated to noft with the option FILE or F on page 5-15, then Example 5-26
shows the result of the LISTUNREFERENCED option—the NMC compiler eliminated
unreferenced prototypes. Compare Example 5-26 to Example 5-30 on page 37, which
shows the result of the LISTUNRESOLVED option.
Example 5-25. C Program for Example 5-26 and Example 5-30
extern short unresolved (short);
extern short unreferenced (short);
short unused(short arg)
{
return (short)(arg + 2);
}
long main()
{
short i, j;
i = 5;
j = unresolved(i);
return 0;
}
Example 5-26. LISTREFERENCED Option for Example 5-25 C Program
noft> listunreferenced *
*** DATA ERROR *** [1055]:
Did not find any unreferenced symbols matching scope.