The STACKSIZE Statement

The STACKSIZE statement specifies the size of the stack in bytes. It performs the same function as the Stack Size option in the Customize Linker Options dialog box. If both are specified, the option in the dialog box overrides the STACKSIZE statement. Do not specify a stack size for a DLL.

Summary: Syntax

STACKSIZE number

Summary: Remarks

The number must be a positive integer, in decimal or C-language notation, up
to 64K.

Summary: Example

The following example allocates 4,096 bytes of stack space:

STACKSIZE 4096