ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/30/19:09:20

Date: Sun, 30 Apr 95 16:01 MDT
From: mat AT ardi DOT com (Mat Hostetter)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: [bug] ebp optimization problem
References: <3o0ojc$j74 AT gap DOT cco DOT caltech DOT edu> <199504302033 DOT PAA15174 AT praline DOT no DOT NeoSoft DOT com>

>>>>> "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.

-Mat

- Raw text -


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