pTAL Reference Manual (H06.03+)

Compiler Directives
HP pTAL Reference Manual523746-005
17-16
Summary of Compiler Directives
Conditional
compilation
DEFINETOG Defines toggles without changing their settings
ENDIF
Identifies the end of code that is to be
conditionally compiled
IF and IFNOT
Identifies the beginning of code that is to be
conditionally compiled
RESETTOG
Turns toggles off
SETTOG
Turns toggles on
TARGET
3
Specifies the architecture on which the
program will run
Run-time
environmen
t
SYMBOLS
Generates a symbol table for a symbolic
debugger
Table 17-2. Compiler Directives by Name (page 1 of 3)
Directive Operation
ASSERTION
Conditionally executes a debugging procedure
BEGINCOMPILATION
1
Marks the point in the source file where compilation is to begin if
the USEGLOBALS directive is active
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
COLUMNS
Treats as comments any text that appears beyond the specified
column
DEFEXPAND
Expands DEFINEs in the compiler listing
DEFINETOG
Defines toggles without changing their settings
DO_TNS_SYNTAX
Issues warnings for pTAL constructs that are not valid in TAL
ENDIF
Identifies the end of code that is to be conditionally compiled
ERRORFILE
Writes error and warning messages to an error file
ERRORS
Terminates compilation after the specified number of error
messages
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.
Table 17-1. Compiler Directives by Category (page 3 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.