pTAL Reference Manual (H06.08+)

Compiling and Linking pTAL Programs
HP pTAL Reference Manual523746-006
16-6
Completion Codes Returned by the Compiler
Target File Option
The target file is the disk file that is to receive the object code. You can specify a file
name or a DEFINE name as described in Appendix B, Disk File Names and HP TACL
Commands.
These examples write the object code to a disk file named myobject:
pTAL /IN mysource/ myobject
EpTAL /IN mysource/ myobject
If you omit the target file, the compiler creates a file named object on your current
default subvolume.
If an existing file has the name object or the name you specify, and the existing file
has the correct filecode (700 for the pTAL compiler, 800 for EpTAL compiler), the
compiler overwrites the existing file. (The compiler overwrites the existing file by
purging it and then creating a new file that has the same name and filecode.)
If the compiler cannot purge the existing file, the compiler creates a file named
ZZPTnnnn
,
where nnnn is a different number each time.
Completion Codes Returned by the Compiler
When the compiler compiles a source file, it either completes the compilation normally
or stops abnormally. It then returns a process-completion code to the HP TACL product
indicating the status of the compilation.
Table 16-1. Completion Codes
Code Termination Meaning
0 Normal The compiler found no errors or unsuppressed warnings in the
source file. (Warnings suppressed by the NOWARN directive do
not count.) The object file is complete and valid (unless a SYNTAX
directive suppressed its creation).
1 Normal The compiler found at least one unsuppressed warning. (Warnings
suppressed by the NOWARN directive have no effect.) The object
file is complete and valid (unless a SYNTAX directive suppressed
its creation).
2 Normal The compiler found at least one compilation error and did not
create an object file, but completed processing the source.
3 Abnormal The compiler exhausted an internal resource such as symbol table
space or could not access an external resource such as a file. The
compiler did not create an object file.
8 Normal The compiler could not use the object file name you specified, so it
chose the name reported in the summary. The object file is
complete and valid.