LINK Help (linkx.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
/STACK Option
                                             Up Contents Index Back
─────/STACK Option──────────────────────────────────────────────────────────
 
     Syntax:  /ST[ACK]:number
 
     The /STACK option lets you set the stack size in bytes. Specify a
     number from 1 to 64K in decimal or C-language notation. The
     default <number> varies with the language. For C programs, the
     default stack size is 2K (2,048 bytes). LINK rounds the specified
     value up to an even number.
     See: Entering Numeric Arguments
 
     If your program generates a stack-overflow error, you can increase
     the size of the stack. In contrast, if your program uses the stack
     very little, you may save some space by decreasing the stack size.
 
     NOTE: You can also use the EXEHDR utility to set the stack size.
           See: What Is EXEHDR? (in Miscellaneous Utilities Help)
                                    -♦-