Mail Archives: djgpp/1995/04/30/17:19:12
> 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 -