4 ms·
That's the beauty of C -- you don't have to rely on OS, so a code written 30 years ago is still working today.
by kbart 11y ago
That's the beauty of C -- you don't have to rely on OS, so a code written 30 years ago is still working today.
- cfcef 11y agoOf course C relies on an OS. The point of an OS is securely mediating access to resources; a C program is going through the OS, using syscalls, in order to do stuff like 'write a file'. Which bears a certain resemblance to what this code is doing...
- kbart 11y agoLet me repeat myself -- "you don't have to". C runs well on bare metal, that's why most bootloaders, kernels and low level drivers use it. Of course, you can make as many dependencies as you wish, but unlike high level languages, C doesn't rely on OS for it's core features.
- deleted 11y ago[deleted]