Skip to content

#FREF

#FRef

Purpose

The #FRef directive instructs the compiler on how to resolve an undefined symbol. The undefined symbol must be defined later in the program.

Syntax

#FRef {symbol1} {symbol2}

What It Does

The forward reference command #FRef takes two arguments separated by a space. The second argument is the symbol whose value should be moved to the first argument at the time in compilation when the first (forward referenced) symbol is defined. This directive is primarily used for passing the line numbers of internal labels to the forward reference table of programs.

For example, #FRef END$!r will fix up the symbol END$!r (an internal label) with the number of the program line on which END$!r is eventually defined. If END$!r is never defined in the program, Error 157 "Forward reference not resolved" is declared at the end of compilation.