Szerkesztés

Megosztás a következőn keresztül:


/F (Set Stack Size)

Sets the program stack size in bytes.

Syntax

/F number

Arguments

number
The stack size in bytes.

Remarks

Without this option, the stack size defaults to 1 MB. The number argument can be in decimal or C-language notation. The argument can range from 1 to the maximum stack size accepted by the linker. The linker rounds up the specified value to the nearest multiple of 4 bytes. The space between /F and number is optional.

You may need to increase the stack size if your program gets stack-overflow messages at runtime.

You can also set the stack size by:

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > C/C++ > Command Line property page.

  3. Enter the compiler option in the Additional Options box.

To set this compiler option programmatically

See also

MSVC compiler options
MSVC compiler command-line syntax