H-Series Application Migration Guide (H06.03+)

pTAL Migration Tasks
H-Series Application Migration Guide429855-006
7-3
Removal Optional
Removal Optional
The following directives are obsolete in TNS/E pTAL. The TNS/E pTAL compiler treats
them as described under “Notes”. Removing them from your program has no effect
and requires no additional code changes.
Directive Behavior Changed
These directives have different behavior in TNS/E pTAL and might need to be changed
in your program:
Using Changed Directives in Common Code for G-series and
H-Series Systems
If you want to maintain common source code for the G-series and H-series pTAL
compilers, you can leave any changed directives in your program, then use conditional
compilation directives to compile or not compile the directives, depending on the target
platform. For example, these statements compile the NO_GPOK directive only if the
target platform is RISC1 (TNS/R):
?IF RISC1
?NO_GPOK
?ENDIF RISC1
Directive Notes
BEGINCOMPILATION This directive is considered obsolete in TNS/R pTAL. It is not
supported and is ignored by the TNS/E pTAL compiler. (Do not
remove this directive if it is still needed for a TNS/R
compilation.)
SRL SRLs are not supported on H-series systems. The TNS/E
pTAL compiler ignores this directive and issues a warning
diagnostic if the directive is encountered during compilation.
GP_OK
NOGP_OK
PUSHGP_OK
POPGP_OK
These SRL-related directives are not needed because SRLs
are not supported on H-series systems. The TNS/E pTAL
compiler ignores these directives.
NOCALL_SHARED TNS/E pTAL compiler generates PIC only (CALL_SHARED is
the default and only supported option). The TNS/E pTAL
compiler ignores this directive.
Directive Description of Change
OPTIMIZEFILE TNS/R pTAL does not issue warnings for errors in specified
file. TNS/E pTAL issues warnings for certain conditions. See
the pTAL Reference Manual for details.
OVERFLOW_TRAPS
NOOVERFLOW_TRAPS
In TNS/R pTAL, OVEFLOW_TRAPS is the default. In TNS/E
pTAL, NOOVERFLOW_TRAPS is the default.