Good you ask! I thought you had understood this, but I'm happy to reiterate: The kernel could be implemented in anything, as it does not leak language requirements across the kernel/user space divide.
The ABI (which is what you care if you link against it) is the standard C ABI
Which still requires C-specific knowledge to use. As demonstrated by literally any language that mistakenly thought they were ABI compatible by using the LLVM backend.
I can write an assembly program right now that links against glibc. Don't believe me?
Sure. Why wouldn't I?
...
I think "if you aren't interested in C's ecosystem you get to use less of C's ecosystem" is not the slam-dunk argument you think it is.
crt0
The crt0 is often written in assembly, not C. And you can just leave out the steps that are C-specific.
View all comments
Show parent comment
0
u/simon_o Oct 10 '26 edited Oct 10 '26
Good you ask! I thought you had understood this, but I'm happy to reiterate:
The kernel could be implemented in anything, as it does not leak language requirements across the kernel/user space divide.
Which still requires C-specific knowledge to use. As demonstrated by literally any language that mistakenly thought they were ABI compatible by using the LLVM backend.
Sure. Why wouldn't I?
I think "if you aren't interested in C's ecosystem you get to use less of C's ecosystem" is not the slam-dunk argument you think it is.
The crt0 is often written in assembly, not C. And you can just leave out the steps that are C-specific.