To: djgpp AT sun DOT soe DOT clarkson DOT edu From: antony AT werple DOT mira DOT net DOT au (Antony Suter) Subject: Re: [bug] ebp optimization problem Date: Mon, 01 May 1995 12:28:23 -0400 Reply-To: antony AT werple DOT mira DOT net DOT au Lines: 24 >>>>>> "Charles" == Charles Sandmann writes: > > Charles> This is a know limitation with V1.x and DPMI. You cannot > Charles> use -fomit-frame-pointer with DPMI unless you create some > Charles> custom code to replace the SS selector with the DS > Charles> selector. GCC assumes a flat 32 bit address space - and > Charles> that all selectors point to the same memory. > >The first line of Executor's main() is: > > asm ("pushl %ds\n\t" > "popl %ss"); > >which solves the problem. Yes, but now where does your stack go? You changed the segment but haven't even touched %sp. This works? -- - Antony Suter - (Rohaan) - "In space, all warriors are Code warriors", Chang, ST6