[comp.os.msdos.programmer] Separate Stack Segment under MS Windows 3.0

smvorkoe@daisy.waterloo.edu (Stefan M. Vorkoetter) (02/20/91)

I am developing an application to run under MS Windows 3.0, and I
am trying to put the stack in a segment of its very own.  I am using
large model, and the /Aw flag so the compiler knows that the stack
is not the same as the default data segment, but I am unable to get
the linker to create a separate stack segment.  The documentation is
absolutely useless in this regard, and Microsoft technical support
was equally uninformative ("duh, try using the /Aw option on the
compiler...").

Has anyone here done this, and if so, could they tell me (and everyone
else if you think everyone else would be interested) how.

Thanks in advance.

Stefan Vorkoetter
(smvorkoetter@daisy.waterloo.edu)

richardh@hpopd.pwd.hp.com (Richard Hancock) (02/21/91)

/ hpopd:comp.os.msdos.programmer / smvorkoe@daisy.waterloo.edu (Stefan M. Vorkoetter) / 10:04 pm  Feb 19, 1991 /

> I am developing an application to run under MS Windows 3.0, and I
> am trying to put the stack in a segment of its very own.

I believe that this is "impossible" unless you want to do stack-switching
yourself, eg. GlobalAlloc() and switch SS as appropriate.

Richard.