3 ms·
An example of a relatively simple non-C interface is the linux kernel interface. It's so non-C you can't even cleanly interface with it from C.
by GoblinSlayer 5y ago
An example of a relatively simple non-C interface is the linux kernel interface. It's so non-C you can't even cleanly interface with it from C.
- matheusmoreira 5y agoYes. The Linux system call calling convention doesn't match the C ones at all. One needs inline assembly in order to interface with the Linux kernel from C. The ideal solution is to have a system_call keyword built into the compiler that emits the proper instructions for the target platform.