TAL Reference Manual
TAL Reference Manual—526371-001
11-1
11 NAMEs and BLOCKs
Your input to a compilation session is a single source file. The source file contains
declarations, statements, and compiler directives that you can compile into an object
file.
The source file and any other source code that is read in by SOURCE directives
together compose a
compilation unit.
The output from a compilation session is an executable or bindable object file that
consists of relocatable code and data blocks. You can compile separate object files
and then use Binder to bind the object files into a new executable or bindable object
file, called the target file.
When you bind object files together, Binder might have to relocate global data. In your
compilation unit, you can use the BLOCK declaration to group global data declarations
into relocatable data blocks. In the BLOCK declaration, you can specify whether the
data block is private to a compilation unit or shareable with other compilation units in a
program.
If you use a BLOCK declaration in a compilation unit, you must also use a NAME
declaration to give the compilation unit an identifier.
This section describes the syntax for:
•
The NAME declaration
•
The BLOCK declaration
For more information on the related topics, see Section 14, “Compiling Programs,” in
the
TAL Programmer’s Guide:
•
Compiling with relocatable data blocks
•
Allocation of global data blocks by the compiler
•
Sharing global data blocks
NAME Declaration
The NAME declaration assigns an identifier to a compilation unit and to its private data
block if it has one.
identifier
is the identifier of the compilation unit.
identifier
;
VST1101.vsd
NAME