pTAL Reference Manual (H06.03+)

Compiler Directives
HP pTAL Reference Manual523746-005
17-15
Summary of Compiler Directives
Diagnostics ERRORFILE Writes error and warning messages to an error
file
ERRORS
Terminates compilation after the specified
number of error messages
DO_TNS_SYNTAX
Issues warnings for pTAL constructs that are
not valid in TAL
INVALID_FOR_PTAL
Causes errors for TAL constructs that are not
valid in pTAL
WARN
Suppresses compiler warnings
Object-file
content
ASSERTION
Conditionally executes a debugging procedure
BLOCKGLOBALS
Determines how the compiler allocates global
data that is not declared within the scope of a
named data block or the private data block
CALL_SHARED
3
Generates shared code (PIC)
CHECKSHIFTCOUNT
Causes overflow traps for invalid bit-shift
operations
EXPORT_GLOBALS
Exports globals
FIELDALIGN
Specifies the default memory alignment for
structures
GP_OK
1
Generates code that has GP-relative
addressing
OPTIMIZE
Sets the object code’s default optimization
level
OPTIMIZEFILE
Sets the optimization level for individual
procedures and subprocedures
OVERFLOW_TRAPS
3
Controls whether overflow traps are enabled
REFALIGNED
Specifies the default memory alignment for
pointers to nonstructure items and procedure
reference pointers
ROUND
Rounds FIXED values assigned to FIXED
variables with smaller fpoint values
SRL
1
Generates code that can be included in a user
library
SYNTAX
Checks the syntax, suppressing the object
code
Table 17-1. Compiler Directives by Category (page 2 of 3)
Category Directive Operation
1. The EpTAL compiler ignores this directive.
2. The EpTAL compiler does not accept this directive.
3. The pTAL and EpTAL compilers treat this directive differently.