pTAL Reference Manual (H06.08+)
Compiler Directives
HP pTAL Reference Manual—523746-006
17-13
Summary of Compiler Directives
3. Use a SOURCE directive to include GLOBALS in COMP1 (as in Example 17-15 on
page 17-13).
4. In each file that depended on the global data declarations file that the original
COMP1 produced:
•
Use a SOURCE directive to include GLOBALS.
The SOURCE directive must appear before any other declarations and must
be immediately followed by the BEGINCOMPILATION directive.
•
After the BEGINCOMPILATION directive, specify any additional directives that
were originally specified in the compilation command.
Summary of Compiler Directives
Table 17-1 on page 17-14 summarizes directives by categories, which are:
•
Compiler input on page 17-14
•
Compiler listing on page 17-14
•
Diagnostics on page 17-15
•
Object-file content on page 17-16
•
Conditional compilation on page 17-17
•
Run-time environment on page 17-17
Table 17-2 on page 17-17 lists directives by name in alphabetical order.
struct s(*);
begin
...
end;
! All other common declarations and directives in the
! compilation
! End of GLOBALS
Example 17-15. Corrected SAVEGLOBALS Compilation Source File
! COMP1
?source GLOBALS
! End of global declarations
?BEGINCOMPILATION
! All other non-global declarations,
! including procedure declarations ...
! End of COMP1
Example 17-14. New GLOBALS Source File (page2of2)










