logoalt Hacker News

pjmlptoday at 9:52 AM1 replyview on HN

Not really, because many don't even know there isn't such thing as C ABI, rather the OS ABI, when the OS happens to be written in C.


Replies

simionestoday at 11:01 AM

Even this is too simplistic. While C compilers normally use the OS ABI, there is nothing that requires them to do this, and other languages don't. Of course, when you need to call functions provided by the OS, you have to do so following the OS ABI; but calls between functions written in your own language, even in different libs, don't need to follow this same rule.