16.12 The STACKSIZE Statement

The STACKSIZE statement specifies the size of the stack in bytes. It performs the same function as LINK's /STACK option. If both of these are specified, the STACKSIZE statement overrides the /STACK option. Do not specify the STACKSIZE statement for a DLL.

Syntax

STACKSIZE number

Remarks

The number must be a positive integer, in decimal or C-language notation, up to 64K. If an odd number is specified, LINK rounds up to the next even value.

Example

The following example allocates 4096 bytes of stack space:

STACKSIZE 4096