Requesting D ABI clarifications
Brad Roberts
braddr at puremagic.com
Sat May 13 12:26:07 PDT 2006
On Sat, 13 May 2006, Walter Bright wrote:
> pragma wrote:
> > B) If memory serves, I think Walter went on the record as saying that the
> > exception handling mechanisms are *different* between win32 and linux (the
> > latter having to do with GDC/GDB compatibility I guess). I hope I'm wrong
> > about
> > that, as this just seems to make life harder than necessary. IMNSHO, using
> > separate SEH mechanisms kind of ruins the idea of a true ABI.
>
> They are different. Win32 uses the NT SEH, which has no counterpart on linux.
> For linux, I would use g++'s .eh_frame method, but it is (as far as I can
> tell) completely undocumented. So I gave up on that, and simply used what I'd
> invented for C++ exceptions on 32 bit DOSX.
>
> The code to make it work is in phobos/internal/deh2.d.
Here's the documentation for the industry standard abi that's being used
by essentially all unix compiler writers for the last several years (gcc
as of version 3):
http://www.codesourcery.com/cxx-abi/
http://www.codesourcery.com/cxx-abi/abi-eh.html
Later,
Brad
More information about the Digitalmars-d
mailing list