Export (0) Print
Expand All
Dos
Mem
Msg
Expand Minimize

Stacks

Supports the dynamic use of data stacks to handle hardware interrupts. To use this environment variable, place it in your Config.nt file.

Syntax

stacks= n,s 

Parameters

n   : Specifies the number of stacks. Valid values for n are 0 and numbers in the range 8 through 64.

s   : Specifies the size, in bytes, of each stack. Valid values for s are 0 and numbers in the range 32 through 512.

Remarks

  • Default settings

    The following table shows the default settings for the stack command.

    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, Windows XP allocates one stack from the specified number of stacks. When you specify 0 for the n and s values, Windows XP 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.

Examples

To allocate eight stacks of 512 bytes each for hardware-interrupt handling, add the following command to your Config.nt file:

stacks=8,512

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Command-line reference A-Z

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft