4 ms·
Neither of the ISO C and ISO C++ standards define an ABI.
by leni536 2mo ago
Neither of the ISO C and ISO C++ standards define an ABI.
- mohamedkoubaa 2mo agoRight, 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.
- leni536 2mo agoYes 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.