TAL Programmer's Guide
14 Compiling Programs
096254 Tandem Computers Incorporated 14–1
When you run the TAL compiler, the input is a source file—a file that contains TAL
source text such as data declarations, statements, compiler directives, and comments.
The output from a compilation is an executable or bindable object file that consists of
relocatable code and data blocks. You can bind object files with other object files into a
new executable or bindable object file.
This section describes:
The TAL compiler
Compiling source files
Binding object files
Compiling with source lists
Compiling with search lists
Compiling with relocatable data blocks
Compiling with saved global data
Collecting cross-references
The Compiler The TAL compiler process is integrated with two other processes—BINSERV and
SYMSERV. You can govern all three processes by using compiler directives.
The compiler compiles source code, processes compiler directives, and starts BINSERV
and SYMSERV for additional processing. The compiler also produces any listings that
result from the three processes.
Compiler directives let you select compilation options such as:
Using conditional compilation (IF directive)
Saving compiled global declarations for use in later compilations
(SAVEGLOBALS, USEGLOBALS, BEGINCOMPILATION, and SEARCH
directives)
Checking the syntax without producing an object file (SYNTAX directive)
BINSERV If compilation is successful and the SYNTAX directive is not in effect, BINSERV:
Constructs an object file
Resolves external references by locating pertinent code and data blocks in object
files listed in SEARCH directives and binding them into the object file
Produces binder statistics for inclusion in the compiler listings
You can do further binding by using Binder.
SYMSERV If you compile using the SYMBOLS directive, SYMSERV provides symbol-table
information to the object file for use by the Inspect product. If you compile using the
CROSSREF directive, SYMSERV generates source-level cross-reference information for
your program.