On Monday, 24 January 2022 at 18:30:02 UTC, Stanislav Blinov wrote:

The difference is in how arguments are being passed, which you seem to have discovered already :)

Would like to know where the linkage format is defined, thx.

It should be here: https://dlang.org/spec/abi.html although IIRC it might not be 100% up to date.

Ah, yes. Thanks. Maybe I should read it more carefully =)

It claims that the D calling convention matches C. But it seems that the arguments are pushed in order whereas C does it in reverse order and the -218697648 value is indeed my 3rd string pointer.


Reply via email to