TAL Programmer's Guide
Compiling With Cross-References
Compiling Programs
14–28 096254 Tandem Computers Incorporated
You can add and delete classes when you start the collection:
?CROSSREF, CROSSREF UNREF, NOCROSSREF VARIABLES
!Start collecting cross-references and
! change the class list
NAME test;
INT i;
?NOCROSSREF !Stop cross-references for BLOCK
BLOCK PRIVATE;
INT j;
END BLOCK;
?CROSSREF, CROSSREF VARIABLES
!Start cross-references for procedure and
! add a class to the class list
PROC p MAIN;
BEGIN
!Lots of code
END;
For other cross-reference options, use the stand-alone Crossref product as described in
the Crossref Manual. For example, stand-alone Crossref can collect cross-references
from source files written in one or more languages.
Printing Cross-References To print the collected cross-references in the compiler listing, LIST and NOSUPPRESS
(the defaults) must be in effect at the end of compilation. CROSSREF collects cross-
references even if NOLIST is in effect for all or part of the compilation. In the compiler
listing, the cross-reference list follows the global map and precedes the load maps.
In the following example, SUPPRESS suppresses part of the cross-reference listing, and
NOSUPPRESS resumes the listing for subsequent code:
!Default LIST and NOSUPPRESS are in effect.
?CROSSREF !Collect (and list) cross-references
PROC p;
BEGIN
!Some code
END;
?SUPPRESS !Stop listing cross-references
PROC q;
BEGIN
!More code
END;
?NOSUPPRESS !Resume listing cross-references
!More code
!LIST and NOSUPPRESS are in effect at the end of compilation.