3 ms·
> C is fast because it's close to how CPU and memory actually work. Out-of-order execution, cache hierarchies, branch prediction, virtual memory, pipelining, v
by dist1ll 4y ago
> C is fast because it's close to how CPU and memory actually work.
Out-of-order execution, cache hierarchies, branch prediction, virtual memory, pipelining, vector instructions, ILP, NUMA are all pretty transparent to the C spec.
Trying to accommodat hardware quirks with C feels like blackbox engineering. It's certainly better than with managed languages but still....
- kosherhurricane 4y agoC is an abstraction, and most (all?) cpu architectures pretends to be c machines. I don't know of any other way of manipulating the cpu as closely as C and assembly. Do you?
- deleted 4y ago[deleted]