Date: Thu, 17 Nov 94 23:52:40 PST From: baca AT crl DOT ucsd DOT edu (Kevin Baca) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: stack segment I'm attempting to write a multitasking application under dos using GCC. In order to do this, I need to explicitly allocate and manipulate stacks for each individual task by directly fiddling with the stack pointer (esp). For this to work, my data segement selector (ds) and my stack segment selector (ss) must point to the same descriptor (I'm using malloc() to allocate stack frames). Well, under plain dos, it seams GO32 sets ds and ss to point to the same descriptor. Under Windows, however, they point to different selectors. Why is this?