CRE Programmer's Guide

Compiling and Binding Programs for the TNS CRE
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
3-6
Binding Programs for the CRE
The rules for binding modules together follow:
You can bind object files that are in the same Binder group; the resulting object file
runs in the same environment as the input object files.
You can bind object files that include routines from both the OLD and NEUTRAL
Binder groups; the resulting object file runs in a language-specific run-time
environment.
You can bind object files that include routines from both the COMMON and
NEUTRAL Binder groups; the resulting object file runs in the CRE.
You cannot bind object files that include routines from both the COMMON and OLD
Binder groups.
When you bind object files compiled for different environments, each procedure retains
its original ENV attribute.
Table 3-7
shows the run-time environment resulting from binding modules from
different Binder groups together.
FORTRAN D-series compilers with ENV COMMON specified
TAL D-series compilers with ENV COMMON specified
NEUTRAL C D-series compilers with ENV EMBEDDED specified
D-series compilers with ENV LIBSPACE specified
TAL C-series compilers by default
D-series compilers by default
D-series compilers with ENV NEUTRAL specified
Note. If you specify the ENV NEUTRAL directive in a TAL source file, BINSERV does not allow
the resulting object file to be combined with object files compiled for the COMMON or OLD
Binder groups. For example, BINSERV will not generate an object file if a file that contains an
ENV NEUTRAL directive also specifies a SEARCH directive to a file compiled with ENV
COMMON or ENV OLD directives. This rule prevents an object file from gaining the COMMON
or OLD attributes.
Table 3-7. Run-Time Environment Resulting From Binding Modules
Binder Group OLD COMMON NEUTRAL
OLD language-specific Not allowed language-specific
COMMON Not allowed CRE CRE
NEUTRAL language-specific CRE language-specific or CRE
Table 3-6. Binder Grouping of ENV Directive Parameters (page 2 of 2)
Binder Group Language Generated by