CRE Programmer's Guide
Introducing the CRE
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
1-7
Selecting a Run-Time Environment
Refer to Section 3, Compiling and Binding Programs for the TNS CRE, and Section 4, 
Compiling and Linking Programs for the Native CRE, for details. Refer to Writing TAL 
Routines That Use the TNS CRE on page 2-6 for additional restrictions for TAL 
routines running in the TNS CRE.
pTAL routines linked into a program with a native C or native COBOL main routine can 
run in the CRE. (The native C or native COBOL main routine ensures that the correct 
CRE library initialization and termination functions are called.) Refer to Writing TAL 
Routines That Use the TNS CRE on page 2-6 for additional restrictions for pTAL 
routines running in the native CRE.
Table 1-3 on page 1-8 compares the languages supported by the TNS CRE and the 
TNS/R or TNS/E native CRE.
pTAL 
(TNS/R)
Yes; calls from 
system routines to 
CRE library 
functions to 
perform actions on 
those objects, 
such as the 
standard files, that 
you want to share 
or coordinate with 
other languages
No Yes No No
TAL (TNS) Yes; calls from 
system routines to 
CRE library 
functions to 
perform actions on 
those objects, 
such as the 
standard files, that 
you want to share 
or coordinate with 
other languages
Only if a 
compiler 
directive is 
specified
Yes No Yes, if 
changed to 
make calls 
to specific 
CRE library 
initialization 
and 
termination 
functions
Table 1-2. Requirements for Running in the CRE (page3of3)
Primary 
language or 
compiler 
used for the 
program
Need to make 
source changes?
Must be 
compiled 
to run in 
the CRE?
Can use 
system 
procedure 
calls for 
resources 
that are not 
shared?
What 
changes in 
execution?
Can 
contain a 
main 
routine?










