ID Number: Q50950
5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a
MS-DOS | OS/2
Summary:
In Microsoft C Compiler versions 5.1, 6.0, 6.0a, 6.0ax, and C/C++
version 7.0 the choice to use the /F compiler option or the /ST linker
option to specify a stack size for a program depends on the method being
used to compile and link.
More Information:
If you using the CL command to compile and link, the /F compiler option
is all that is necessary. This option will pass the correct size of the
stack to the linker.
Conversely, if you are invoking the compiler and the linker separately
(as in a MAKE file), the /ST link option can be used to get the
desired stack size.
No stack information is stored in the object module. Therefore, using
the /F and /c (compile only) options together and then invoking link
separately will not generate the desired stack size.
For Windows and OS/2 applications, the stack size can be specified in
the .DEF file using the STACKSIZE directive. STACKSIZE overrides the
size specified on the link line.
Additional reference words: 5.10 6.00 6.00a 6.00ax 7.00