3 ms·
Do these operating systems also use a non-C calling convention for libraries?
by tremon 5y ago
Do these operating systems also use a non-C calling convention for libraries?
- ncmncm 5y agoIt is common for an OS to use a non-C protocol for actual system-call traps, but also unfortunately common not to document, support, or maintain those, so users are obliged to call a provided C library for to use them.
- steveklabnik 5y agoHubris, the Rust OS I work on, is... aggressively static and doesn't have dynamic linking (or loading, in fact), but the kernel ABI is non-C, yes: https://hubris.oxide.computer/reference/#_syscall_abi https://hubris.oxide.computer/reference/#_syscall_abi (We use it in Rust via inline assembly stubs.)