pTAL Reference Manual (H06.03+)
Compiler Directives
HP pTAL Reference Manual—523746-005
17-68
USEGLOBALS
file-name
is the name of the global declarations disk file created by SAVEGLOBALS in a
previous compilation.
On Guardian platforms, the compiler uses HP TACL ASSIGN SSV information, if
specified, to complete the file name; otherwise, the compiler uses the current
default volume and subvolume names as needed.
define-name
is the name of a MAP DEFINE that refers to the global declarations file.
assign-name
is a logical file name you have equated to a disk file (that refers to the global
declarations file) by issuing an ASSIGN command.
Note. MAP DEFINEs are available only on Guardian platforms.
Default: None
Placement: Either in the compilation command or in the source code before any
global data declarations
Scope: Applies to the compilation unit
Dependencies:
•
The compilation unit must have exactly one BEGINCOMPILATION
directive.
•
The compiler exports the data blocks declared in the USEGLOBALS
declarations file only if EXPORT_GLOBALS is active when the
compiler encounters the BEGINCOMPILATION directive.
•
A module that specifies USEGLOBALS can export a global data
block that was declared in the compilation that specified
SAVEGLOBALS only if the SAVEGLOBALS compilation exported
the data block.
Typically, a project that uses SAVEGLOBALS explicitly links globals
into the object file and specifies NOEXPORT_GLOBALS (the
default) for all individual compilations.
•
Interacts with the directives referenced in the next row (see Saving
and Using Global Data Declarations on page 17-8)
References:
•
BEGINCOMPILATION on page 17-19
•
EXPORT_GLOBALS on page 17-31
•
PRINTSYM on page 17-50
•
SAVEGLOBALS on page 17-54
•
SYMBOLS on page 17-64
•
SYNTAX on page 17-65










