TAL Programmer's Guide
Compiling With Cross-References
Compiling Programs
14–26 096254 Tandem Computers Incorporated
Compiling With
Cross-References
The CROSSREF directive either:
Collects source-level cross-reference information produced during compilation
Selects the identifier classes for which you want to collect cross-references
The default is NOCROSSREF.
You can specify CROSSREF or NOCROSSREF in the compilation command or any
number of times anywhere in the source file.
Note
If you use CROSSREF with USEGLOBALS, the compiler does not pass Inspect and cross-reference
symbols information for global identifiers to SYMSERV.
Selecting Classes You can specify that the compiler collects cross-reference information for one or more
of the following classes:
Class Description
BLOCKS Named and private data blocks
DEFINES Named text
LABELS Statement labels
LITERALS Named constants
PROCEDURES Procedures
PROCPARAMS Procedures that are formal parameters
SUBPROCS Subprocedures
TEMPLATES Template structures
UNREF Unreferenced identifiers
VARIABLES Simple variables, arrays, definition structures, referral
structures, pointers, and equivalenced variables
The default class list includes all classes except UNREF. The CONSTANTS class is
available in the stand-alone Crossref product, but not in the CROSSREF directive.
You can make changes to the current class list at any point in the compilation unit.
When you specify parameters, CROSSREF and NOCROSSREF only modifies the class
list. To start (or stop) the collection of cross-references, you must specify CROSSREF
(or NOCROSSREF) without parameters. The compiler collects cross-references for the
class list in effect at the end of the compilation.