pTAL Guidelines for TAL Programmers
Overview
pTAL Guidelines for TAL Programmers—527256-002
1-2
Compiling pTAL Programs
Compiling pTAL Programs
Figure 1-1 on page 1-3 shows that you can:
•
Use the pTAL compiler to check your pTAL program’s syntax and then compile
your pTAL program with the TAL compiler to create a TNS object file.
The pTAL compiler displays messages that identify the majority of syntax errors
and include information to help diagnose each error. Where appropriate, the
messages name the identifiers that are in error and indicate what to do to correct
the error. For example, if the data types of two variables are not compatible, the
error message includes the names of the variables and the data type of each one.
You must determine which data type is correct, based on the intent of the
statement in which the variables appear.
(You can compile your pTAL program with the TAL compiler without checking its
syntax first, but HP does not recommend this approach.)
•
Compile your pTAL program by using the pTAL compiler to create a TNS/R native
object file.
•
Compile your pTAL program by using the EpTAL compiler to create a TNS/E native
object file.
•
Create a TNS object file from your pTAL program and then accelerate it by using
either the Accelerator or the TNS Object Code Accelerator (OCA). You might
choose to accelerate a TNS object file (rather than create a native object file)
because you want to run the same object file as both a TNS process and a native
process.
Note. You can use pTAL object files only on D40 RVUs and later of the NonStop operating
system.