Date: Thu, 18 Mar 93 09:47:13 -0600 From: rcharif AT math DOT utexas DOT edu Posted-Date: Thu, 18 Mar 93 09:47:13 -0600 To: sandmann AT clio DOT rice DOT edu Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: DPMI & new GO32 Reply-To: rcharif AT math DOT utexas DOT edu of one wish and adds a new one. Since OS/2 2.0 is also braindead enough to need a stack size in native images, (the microsoft fingerprints remain) In OS/2 2.0 and higher, the stack size is merely an information for the system to restrict stack growth. It is as if you used the rlimit calls in Unix. OS/2 will not allocate the stack unless needed. You can put an 8 Meg stack limit under OS/2 and not worry about the stack. it would be nice if I could run the application under DOS using GO32 and inquire at image exit (in DEBUG32?) how much stack had actually been used by the image. This same feature could be used to specify (with safety margin) the stack for the DPMI version of the code (and my OS/2 ports...). And, if How can you be sure that you used the maximum stack ? How about recursion ? Regards, Rami