16 ms·
I think the lesson is - if you're going to write a kernel, you also need to write your own compiler, and that leads you to writing your own language too.
by rwmj 11y ago
I think the lesson is - if you're going to write a kernel, you also need to write your own compiler, and that leads you to writing your own language too.
- ketralnis 11y agoI don't think that's the lesson at all. If you write a kernel you'll have to write some assembly. If you really want you can write your own compiler that writes the assembly you need I suppose, but you're still writing the assembly somewhere, or at least aware of exactly what assembly will be omitted. The point of something like C11 atomics is that you don't want to have to know the assembly. In the kernel you don't have that luxury
- pjmlp 11y agoWhich has always been the case, up until UNIX got a massive industry adoption that lead to C becoming widespread.