2 ms·
System calls on Linux are stable ABI. They have to be, because you can statically link libc. This is different from Windows.
by inigyou 5mo ago
System calls on Linux are stable ABI. They have to be, because you can statically link libc. This is different from Windows.
- Joker_vD 5mo agoI can (in fact, must when using MSVC) statically link kernel32.lib on Windows as well. It's not a C runtime/standard library, of course, but who ties their OS's user-level API to a particular implementation of a standard library of some random programming language anyhow?
- inigyou 5mo agokernel32.lib is an "import library" for kernel32.dll. This is a windows toolchain concept. The import library contains the placeholder references to the DLL loaded at runtime. If you actually statically linked kernel32.dll somehow it'll break on future windows versions. kernel32 doesn't contain any syscalls anyway since they're all in ntdll.