STACK Entry in MS-DOS and XENIX

Product Version(s): 3.30 3.31
Operating System:   XENIX
Flags: ENDUSER | TAR55715 docerr
Last Modified: 26-SEP-1988    ArticleIdent: Q11816

Question:

Page 79 of the XENIX "Microsoft Pascal Compiler User's Guide" displays
a memory map. For the STACK entry, it says that this is provided for
compatibility with MS-DOS. But under XENIX, the STACK is reserved by
it and not in DGROUP. However, when you use the -F option to set the
stack, the effect is as if the stack is in DGROUP. For example,
setting the stack bigger makes the heap smaller (I get out of heap
errors), and making the stack smaller makes the errors go away. Does
the -F option not only affect the XENIX Stack but also the DOS
compatibility stack?

Response:

The information on page 79 is incorrect. Both DOS and XENIX place
the stack in DGROUP. The documentation insinuates that there are two
stacks; however, there only is one. Thus, the heap is reduced when the
stack size is increased.