C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Setting Stack Size (/F)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /F hexnum
 
     The /F option sets the size of the program stack. The <hexnum>
     field contains a hexadecimal value representing the stack size in
     bytes. As the linker rounds <hexnum> up to the nearest even number,
     the value must be less than 0xFFFF hexadecimal (65,535 decimal); a
     value of 0xFFFF will be rounded to 0x0000. Without this option, the
     default stack size is set to 2K. A space is required between /F and
     <hexnum>.
 
     The /F option affects executable files only. It does not have any
     effect on source or object files. It has the same effect as the
     /STACK option with LINK.
 
     If you get a stack-overflow message, you may need to increase
     the size of the stack. If your program rarely uses the stack,
     you can save space by decreasing the stack size.
                                    -♦-