|
|
|
|
|
by ars
3875 days ago
|
|
> Wouldn't you want to choose a more "clear" language Are you implying that another language would be more clear? Quite the opposite, C doesn't hide anything from you. When you want to understand what the computer is doing you can tell directly from the C code. Unlike other languages where you need to understand what the language is doing first, and only then can you understand the computer. There are time where "hiding" the computer is useful, but not here. |
|
Yes, it does.
C hides cache, SIMD, registers, the stack (no multiple return values for you!), the details of the heap (malloc() either succeeds or fails, and you can't know what it's going to do until you call it), SMP, instruction-level parallelism, and the details of atomicity, all of which are relevant to OS programming.
C is a nice language. Don't pretend it's how the hardware really works.