delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/04/30/17:19:12

From: Charles Sandmann <sandmann AT praline DOT no DOT NeoSoft DOT com>
Subject: Re: [bug] ebp optimization problem
To: rollins AT grue DOT caltech DOT edu (hr)
Date: Sun, 30 Apr 1995 15:33:10 -0500 (CDT)
Cc: mlist-djgpp AT nntp-server DOT caltech DOT edu

> Using the -fomit-frame-pointer caused ebp to be used for indexing
> an array in the data segment, however, no ds: override was produced:
> This causes a stack fault under DPMI but doesn't crash otherwise.
> The C code to produce this follows.

This is a know limitation with V1.x and DPMI.  You cannot use
-fomit-frame-pointer with DPMI unless you create some custom code
to replace the SS selector with the DS selector.  GCC assumes a flat 32 
bit address space - and that all selectors point to the same memory.

- Raw text -


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