I 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?
I didn't know there was a sequel! Looks like there's also a part 3 that covers teensy dynamic linking:
https://www.muppetlabs.com/~breadbox/software/tiny/somewhat....
I don't think a file can actually take less than 4 KiB of disk space on most popular file systems. Can it?
System calls on Linux are stable ABI. They have to be, because you can statically link libc. This is different from Windows.
I 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?