TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-87
STACK Directive
STACK Directive
STACK sets the size of the data stack in the user data segment.
num-pages
is the number of 2048-byte memory pages to allocate for the data stack (storage
area for local and sublocal data). Specify an unsigned decimal constant in the
range 0 through 32.
Usage Considerations
STACK can appear in the compilation command or anywhere in the source code. If you
omit this directive, the default is the space estimated by BINSERV for local storage.
The combined number of memory pages allocated for the data area is equal to
num-
pages plus the space required for global data blocks. That combined area can be at
most 32,768 words (65,536 bytes).
The following directives override the STACK directive:
•
A DATAPAGES directive that specifies more than 32 memory pages
•
An ENV COMMON directive in a compilation unit that contains a MAIN procedure
Example of STACK Directive
This example sets the size of the data stack in the user data segment to 20 memory
pages:
?STACK 20
SUBTYPE Directive
SUBTYPE specifies that the object file is to execute as a process of a specified
subtype.
VST1657.vsd
=
STACK
num-pages
VST1658.vsd
=
SUBTYPE subtype-number