logoalt Hacker News

mohamedkoubaatoday at 3:18 PM1 replyview on HN

Right, C doesn't specify an ABI either but (many) OSes do and they provide their ABIs in C so C became the defacto ABI of a given platform.


Replies

leni536today at 3:45 PM

Yes and no. The Linux kernel barely interacts with the C calling convention ABI (vDSO), and you can interact with the OS without going through a C library. I guess the layout of some structs are exposed through some binary protocols, but most of them are not C function calls.