pTAL Conversion Guide

Compiler Operation
pTAL Conversion Guide527302-002
19-11
For pTAL and TAL
The directive DO_PTAL on page 19-15 is new in TAL. The native compilers ignore it.
The directives in Table 19-4 on page 19-11 are new in pTAL. The TAL compiler ignores
them.
BLOCKGLOBALS
BLOCKGLOBALS determines how the native compiler allocates global data that is not
declared within the scope of a named data block or the private data block.
Table 19-4. New Directives
Directive Name Description
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
2
Determines whether the compiler generates shared code [PIC
(position-independent code)]
CHECKSHIFTCOUNT
Controls instruction traps for invalid shift operations
EXPORT_GLOBALS
Specifies that global data blocks are exported by this compilation
unit
FIELDALIGN
Specifies the default memory alignment for structures
GP_OK
1
Controls whether the pTAL compiler uses GP-relative addressing
INVALID_FOR_PTAL
Forces the native compiler to report an error message
OPTIMIZEFILE
Specifies the optimization level for individual procedures and
subprocedures
OVERFLOW_TRAPS
2
Controls whether overflow traps are enabled
REFALIGNED
Specifies the default memory alignment for pointers to
nonstructure data
SRL
1
Causes pTAL to emit code that can be included in a Shared Run-
Time Library (SRL)
TARGET
2
Specifies the type of process as which the program will run
1. The EpTAL compiler ignores this directive.
2. The pTAL and EpTAL compilers treat this directive differently.
VST658.vsd
BLOCKGLOBALS