[Issue 2191] GDC fraudulently defines D_InlineAsmX86

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 22 09:38:54 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2191





------- Comment #1 from tomas at famolsen.dk  2008-08-22 11:38 -------
I think this bug is invalid. The spec says about "the D_InlineAsmX86" version,
that is specifies that inline asm is supported.

Looking at the inline asm page, at the top it says "Differing D
implementations, however, are free to innovate upon the memory model, function
call/return conventions, argument passing conventions, etc.".

To me this means that the ABI documentation (which is mostly TDB anyway), is a
recommendation, not a requirement. As such I'd recommend a new version like
D_ABICompliant, or something.

I'm currently working on ABI conformance in LLVMDC for x86, hence my interest
in this ticket.

While I see the value of ABI conformance, in the case of LLVMDC, it can mean
(probably) significant performance decrease as we can no longer tell it to use
the 'fastest' calling convention for extern(D).


-- 



More information about the D.gnu mailing list