TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-24
Usage Considerations
Selecting Classes
You can make changes to the current class list at any point in the compilation unit. The
compiler collects cross-references for the class list in effect at the end of the
compilation:
•
To add classes, specify CROSSREF and list the classes you want to add.
•
To delete classes, specify NOCROSSREF and list the classes you want to delete.
With parameters, CROSSREF and NOCROSSREF affect the class list, but do not start
and stop the collection of cross-references.
Collecting Cross-References
For each identifier class in the list, the compiler collects the following cross-reference
information:
•
Identifier qualifiers—structure, subprocedure, and procedure identifiers
•
Compiler attributes—class and type modifiers
•
Host source file name
•
Type of reference—definition, read, write, invocation, parameter, or other
You can collect cross-references for individual procedures or data blocks:
•
To start collection of cross-references, specify CROSSREF without parameters.
•
To stop collection of cross-references, specify NOCROSSREF with no parameters.
Without parameters, CROSSREF and NOCROSSREF start and stop the collection of
cross-references, but do not affect the class list.
CROSSREF without parameters takes effect at the beginning of the next procedure or
data block and remains in effect for the entire program or until a NOCROSSREF
appears.
NOCROSSREF without parameters takes effect at the beginning of the next procedure
or data block and remains in effect for the entire program or until a CROSSREF
appears.
For other cross-reference options, use the stand-alone Crossref product described in
the
CROSSREF Manual. For example, the Crossref product can collect cross-
references from source files written in one or more languages.