TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-34
Examples of ENV Directive
Using Binder, you can bind an object file compiled with ENV OLD to any object file
except those compiled with ENV COMMON. Each procedure in the new object file
retains its original ENV attribute.
A D-series TAL program compiled with ENV OLD can run on a C-series system. To
debug the program with the Inspect product, however, your system must be a release
level C30.06 or later.
ENV NEUTRAL Directive
An object file compiled with ENV NEUTRAL should not rely on any external services
except system procedures.
When ENV NEUTRAL is in effect, all procedures in the compilation unit (except
procedures in object files listed in SEARCH directives) have the ENV NEUTRAL
attribute. SEARCH directives can list object files compiled with ENV NEUTRAL or with
no ENV directive. All procedures in the new object file have the ENV NEUTRAL
attribute.
Using Binder, you can bind an object file compiled with ENV NEUTRAL to any object
file. Each procedure in the new object file retains its original ENV attribute.
ENV Directive Not Specified
An object file compiled without the ENV directive probably does not rely on any
external services except system procedures.
When no ENV directive is in effect, all procedures in the compilation unit (except
procedures in object files listed in SEARCH directives) have the ENV NEUTRAL
attribute. SEARCH directives can list object files compiled with any ENV attribute. Each
procedure in a SEARCH file retains its original ENV attribute.
Using Binder, you can bind an object file compiled without the ENV directive to any
object file. Each procedure in the new object file retains its original ENV attribute.
Examples of ENV Directive
This example specifies the COMMON option of the ENV directive:
?ENV COMMON
ERRORFILE Directive
ERRORFILE logs compilation errors and warnings to an error file so you can use the
TACL FIXERRS macro to view the diagnostic messages in one PS Text Edit window
and correct the source file in another window.