TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-38
Usage Considerations
num-pages
is the number of 2048-byte memory pages to add to Binders estimate of the data
stack size. Specify an unsigned decimal constant in the range 0 through 32.
Usage Considerations
EXTENDSTACK can appear in the compilation command or anywhere in the source
code. If you omit this directive, the default is the data stack size estimated by Binder.
The following directives override the EXTENDSTACK directive:
A DATAPAGES directive that specifies a num-pages value greater than 32.
An ENV COMMON directive in a compilation unit that contains a MAIN procedure.
The compiler allocates 64K words for the user data segment.
Example of EXTENDSTACK Directive
This example adds 20 memory pages to Binder’s estimate of the data stack in the user
data segment:
?EXTENDSTACK 20
EXTENDTALHEAP Directive
EXTENDTALHEAP increases the size of the compilers internal heap for a D-series
compilation unit.
num-pages
is the number of 2048-byte memory pages to add to the compiler’s internal heap.
Specify an unsigned decimal constant in the range 0 through 32,767. The default
value is 0.
Usage Considerations
EXTENDTALHEAP can appear only in the compilation command and should appear
before any directives except SQL or SYMBOLPAGES. It can appear only once in a
compilation unit. Use EXTENDTALHEAP only with D-series compilation units.
If your program requires a larger compiler heap than is currently available, the compiler
issues error 169 (increase the size of the internal heap of the compiler by recompiling
with the EXTENDTALHEAP directive).
VST1622.vsd
=
EXTENDTALHEAP
num-pages