3 ms·
>C Is Not a Low-level Language: Your computer is not a fast PDP-11. https://queue.acm.org/detail.cfm?id=3212479 https://queue.acm.org/detail.cfm?id=3212479 C i
by MYEUHD 4y ago
>C Is Not a Low-level Language: Your computer is not a fast PDP-11. https://queue.acm.org/detail.cfm?id=3212479 https://queue.acm.org/detail.cfm?id=3212479
C is indeed a low level language.
If you wanted a language that's close to the actual hardware you have, you'd have a different language for different hardware. (That's what assembly is)
Meanwhile, C is simple and easy to write compilers for. Therefore, it gained popularity because of its portability
- astrange 4y agoIf you know how a CPU works, especially the bits outside decode and ALUs like cache coherency, I don't think you could call assembly "close to the hardware" either.