Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
STACKS--Notes
◄Example► ◄Syntax►
────────────────────────────────────────────────────────────────────────────
STACKS──Notes
Default settings
The default settings for the STACKS command are as follows:
Computer Stacks
────────────────────────────────────────────
IBM PC, IBM PC/XT, IBM PC-Portable 0,0
Other 9,128
Special cases for stack allocation
Upon receiving a hardware interrupt, MS-DOS allocates one stack from the
specified number of stacks. When you specify 0 for the n and s values,
MS-DOS allocates no stacks. If the values are 0, each running program must
have enough stack space to accommodate the computer's hardware interrupt
drivers. Many computers operate correctly, saving some memory for programs,
with n and s values of 0. If, however, your computer becomes unstable when
you set these values to 0, return to the default values.
Increasing the value of STACKS
If the STACKS values are not equal to 0,0 and you see a "Stack Overflow" or
"Exception error 12" message, increase the number or size of the stacks.
♦