logoalt Hacker News

boguscodertoday at 3:39 PM1 replyview on HN

Yes, you either follow Itanium ABI (non Win) or MSVC ABI. Technically nothing stops _your_ compiler from implementing totally own conventions but it will only be compatible with itself


Replies

Joker_vDtoday at 4:05 PM

GHC uses its own calling convention yet it's compatible with Win API just fine. The secret, of course, is to implement not only your bespoke calling convention, but also the other ones that you care to interoperate with.