TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-26
Usage Considerations
Usage Considerations
Before compilation, you can specify the number of data area memory pages as follows:
You can specify the DATAPAGES directive in the compilation command or
anywhere in the source code. If you specify a
num-pages value greater than 32,
DATAPAGES overrides the STACK and EXTENDSTACK directives. In a
compilation unit that contains a MAIN procedure, the ENV COMMON directive
overrides DATAPAGES
You can specify the memory pages parameter of the C-series NEWPROCESS
procedure or the D-series PROCESS_CREATE_ procedure in your compilation
unit
After compilation, you can set the number of data area memory pages as follows:
In Binder, you can use the DATA, STACK, and EXTENDSTACK options of the SET
command
At the TACL prompt, you can use the MEM option of the TACL RUN command
Programs using SQL instructions require extra data area memory pages.
Example of DATAPAGES Directive
This compilation command starts the compiler and sets the data area size to 64
memory pages:
TAL / IN mysrc, OUT $s.#lists / myobj; DATAPAGES 64
DECS Directive
DECS decrements the compilers internal S-register counter.
sdec-value
is the amount by which to decrement the compiler’s S-register counter. Specify a
signed decimal constant in the range –32,768 through 32,767.
VST1613.vsd
sdec-value
DECS
=