logoalt Hacker News

Someoneyesterday at 5:35 PM1 replyview on HN

> With exception of Swift, D, and bytecode based languages, the ABI is left to the vendors.

I don’t see exceptions there. Apple defines the ABI of Apple’s Swift’s implementation, Walter Bright (or his team) defines that of D, Python defines its ABI, etc.

If you were to write a Swift/D/etc compiler, you’re free to define your own ABI. Disadvantage is that you would give up linking with code compiled by the other compiler (workarounds such as pragmas, C++’s extern "C", are possible)


Replies

pjmlpyesterday at 6:06 PM

You're missing who defines the language standard.

You're free to do whatever you feel like on your implementation, including not being compliant with the official language standard.