3 ms·
Yes. 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. Th
by matheusmoreira 5y ago
Yes. 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.