Use of the /STACK Linker Switch

Product Version(s): 3.20 3.3x
Operating System:   MS-DOS
Flags: ENDUSER | TAR56601
Last Modified: 23-FEB-1988    ArticleIdent: Q11963

Question:
   I am using Version 3.2 of Microsoft Pascal and having problems with
stack overflow. I use the /STACK linker switch to increase the size of
the stack and everything seems to be fine but the documentation in
both the 3.2 and 3.3 manuals says not to use the /STACK switch. Am I
likely to have a problem with this? If so, what can I do?

Response:
   In the 3.2 version, it is possible for a program to cause the stack
size to increase or decrease. Setting a stack size with the linker
switch and then having that size changed by a program could cause
unpredictable results. This is the reason that you should not use the
/STACK switch.
   In Version 3.3x, the stack size is fixed by the compiler so
changing the stack size when linking is acceptable. You will find more
information on the /STACK linker switch in the README.DOC file that
accompanies the 3.31 version of the product.