Microsoft KB Archive/31183

LINK /ST:#### Sets Run-Time Stack to Help “Out of Memory”

PSS ID Number: Q31183 Article last modified on 11-16-1992

2.20 MS-DOS

Summary: Run-time stack size is configurable in Version 2.20. Setting the run-time stack size is very useful in complex systems that have several layers of nested CALL statements. Such complex systems can result in an “Out of Memory” or an “Insufficient Memory for Program” error at run time. The COBOL run time can be configured to use additional stack space by adding the “/ST:####” switch to the LINK command in the MAKERUN.BAT file. The default stack size is 2048 bytes. Use the /ST:3072 setting. For example, the following is a modified LINK statement that increases stack size to 3072 bytes: LINK /ST:3072 COBOL ASM %2 %3 %4 %5 %6 %7 %8 %9 %1,,COBOL1 COBOL2/NOD

More Information: Additional information is provided in the README.DOC file provided on distribution disk number 1. Technicians who can mail you an application note titled “Using the ST Switch” are available at Microsoft Product Support Services by calling (206) 454-2030. This free application note provides more detailed information on this process.

Copyright Microsoft Corporation 1992.