12.5.33 The /STACK Option

Option

/ST[[ACK]]:number

The /STACK option lets you change the stack size from its default value of 2,048 bytes. The number is any positive value in decimal or C-language notation, up to 64K.

Programs that pass large arrays or structures by value or with deeply nested subroutines may need additional stack space. In contrast, if your program uses the stack very little, you might be able to save space by decreasing the stack size. If a program fails with a stack-overflow message, try increasing the size of the stack.

NOTE:

You can also use the EXEHDR utility to change the default stack size by modifying the executable-file header.