TAL Programmer's Guide
CRE Guidelines for TAL
Mixed-Language Programming
096254 Tandem Computers Incorporated 17–43
Including Library Files To run in the CRE, your program needs the TALLIB library file. Your program can
also use the CRELIB and CLULIB library files.
TALLIB provides the TAL_CRE_INITIALIZER_ routine. This routine is described in
the next subsection.
CRELIB provides routines that enable your routine to perform tasks such as the
following. These routines are described in the CRE Programmer’s Guide:
Share files
Manipulate $RECEIVE
Terminate the CRE
Handle exceptions
Perform standard math functions
Manipulate strings
Manage memory blocks
CLULIB (as of the D20 release) contains SMU functions that enable your routine to
manipulate saved startup, ASSIGN, and PARAM message values. These routines are
described in the CRE Programmer’s Guide.
The following table lists the files that your program must include depending on which
set of routines it uses. The table also indicates the run-time environment in which you
can use the library routines.
Table 17-4. Including Library and External Declaration Files
Library
File
Including Library
Routines
Routine
Prefix
Declaration File
to Source In
Run-Time
Environment
TALLIB SEARCH directive or
Binder command
TAL_ TALDECS CRE
CRELIB No action
*
CRE_ CREDECS CRE
CRELIB No action
*
RTL_ RTLDECS CRE
CLULIB SEARCH directive or
Binder command
SMU_ CLUDECS CRE, COBOL85,
FORTRAN, or TAL
*
The
CRELIB file is configured into the system library.
CREDECS and RTLDECS contain blocked global data declarations (that is, data
declared inside BLOCK declarations). If you include blocked data declarations in a
compilation unit, a NAME declaration is required. You must specify global
declarations in the following order:
1. NAME declaration
2. Unblocked global data declarations, if any
3. Blocked global data declarations from CREDECS, RTLDECS, and user code, if any
4. Procedure declarations