FORTRAN Reference Manual

Compiler Directives
FORTRAN Reference Manual528615-001
10-53
PRINTSYM Compiler Directive
Example
In a subroutine for which array subscript bounds checking is particularly important, the
source file could have:
?PUSH BOUNDSCHECK
?BOUNDSCHECK < -- At its beginning
.
?POP BOUNDSCHECK < -- At its end
Such a source file can be incorporated into any program with a SOURCE directive
without disturbing the bounds checking mode of the program using it.
PRINTSYM Compiler Directive
The PRINTSYM directive causes the compiler to include or omit unreferenced
identifiers in MAP listings.
The default is NOPRINTSYM.
Considerations
You must specify the PRINTSYM directive on the FORTRAN command line
following the semicolon after the object file name, or anywhere in the source input
file. You can use any number of PRINTSYM directives in a compilation.
If you declare a symbolic name while NOPRINTSYM is in effect, but the name is
not referenced in any EQUIVALENCE statements or in any executable statements,
the name is omitted from the MAP for the scope in which it is declared. A symbolic
name declared while PRINTSYM is in effect is included in the MAP, even if it is not
otherwise referenced.
Example
?PRINTSYM
[NO]PRINTSYM