다음을 통해 공유


/F   (Set Stack Size)

OverviewHow Do ICompiler Options

The /Fnumber option sets the program stack size to a specified number of bytes. If you don’t specify this option, a stack size of 1 MB is used by default. The number argument can be in decimal or C-language notation. The argument can range from a lower limit of one to the maximum stack size accepted by your linker. (The linker rounds up the specified value to the nearest 4 bytes.) A space is optional between /F and number.

You can also set stack size by using the linker’s /STACK option or by running EDITBIN on an .EXE file.

You may want to increase the stack size if your program gets stack-overflow diagnostic messages.