CRE Programmer's Guide
Compiling and Binding Programs for the TNS CRE
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
3-7
Run-Time Libraries
Use the Binder INFO command with the DETAIL clause to show the ENV attribute of a
particular data or code block. For example:
@ add * from test
@ info *, detail
TEST^PROCEDURE 167
LANG: TAL ENV: NEUTRAL TIME: 1992-06-19 09:48
Run-Time Libraries
The TNS C, COBOL85, FORTRAN, and TAL products each consist of a compiler and a
set of separately packaged run-time functions called a run-time library. Compilers
generate code that depends on the availability of functions in the run-time libraries. The
operating system requires that all references to run-time functions be resolved before a
program is run. To resolve these references, you must either use Binder to bind the
necessary run-time functions into your program or configure the run-time functions into
the system library. The operating system resolves references to run-time functions at
process startup for routines in the system library.
Table 3-8
on page 3-7 shows the locations of the run-time libraries.
The TNS C, COBOL, and FORTRAN run-time libraries are in the system library. You
never have to bind the run-time library into TNS C, COBOL, or FORTRAN programs;
however, you must bind the appropriate memory-model file into C programs. Refer to
the
C Programmer's Guide for details on the C memory-model files.
You must bind the TALLIB file into programs with TAL routines that contain embedded
SQL statement or calls to the TAL_CRE_INITIALIZER_ procedure. Refer to the
TAL
Programmer’s Guide for more information.
The TNS COBOL and FORTRAN run-time libraries include functions that run in the
CRE and functions that run in the COBOL and FORTRAN language-specific run-time
environments. Thus, TNS COBOL and FORTRAN programs can run in their language-
specific run-time environments or the CRE.
In addition, a run-time library called CRELIB contains the CRE library functions
documented in Section 5, Using the Common Language Utility (CLU) Library
,
Table 3-8. Locations of C-Series and D-Series TNS Run-Time Libraries
Language Guardian Run-Time Library OSS Run-Time Library (G-series)
C CLIB is in the system library.
COBOL C8LIB is in the system library.
FORTRAN FORTLIB is in the subvolume
containing the FORTRAN compiler.
FORTSYS is in the system library.
N.A.
TAL TALLIB is in the subvolume
containing the TAL compiler.
N.A.