C++/C mangleof inconsistency for OS X
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 23 11:43:47 PDT 2015
On Thursday, 23 April 2015 at 18:07:48 UTC, Iain Buclaw wrote:
> A 'nice to know' which is specific to GDC. If you prefix
> pragma(mangle) names with "*" then it will not apply
> target-dependent
> prefixes.
For LLVM, this works by prefixing the name with \1.
We need to do this internally for naked inline asm support on
Windows to match DMD's mangling (stdcall-based cc, but no @<n>
suffix).
This might not work from pragma(mangle) right now, though.
— David
More information about the Digitalmars-d
mailing list