inline asm return values
kinke
noone at nowhere.com
Sun Mar 25 12:23:03 UTC 2018
On Sunday, 25 March 2018 at 10:58:37 UTC, Dave Jones wrote:
> Is this stuff documented somewhere?
See https://dlang.org/spec/abi.html#function_calling_conventions.
It defines the D calling convention for Win32 (int return value
in EAX) and states that it matches the C calling convention on
all other platforms [but note that the args are actually
reversed].
> Is the inline asm portable between compilers?
LDC supports the DMD-style inline asm too, GDC doesn't.
More information about the Digitalmars-d-learn
mailing list