delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/01/00:21:48

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 <sandmann AT praline DOT no DOT NeoSoft DOT com> 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  <antony AT werple DOT mira DOT net DOT au>
- (Rohaan)      <s871780 AT minyos DOT xx DOT rmit DOT edu DOT au>
- "In space, all warriors are Code warriors", Chang, ST6

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019