Hacker News new | ask | show | jobs
by comex 2247 days ago
C is close to the interface the hardware presents you – that is, the instruction set – but far from what the hardware actually does.

Caching, out-of-order execution, branch prediction, speculation... all of those things are just as opaque to assembly as they are to C.

1 comments

> C is close to the interface the hardware presents you – that is, the instruction set – but far from what the hardware actually does.

C isn't even close to that anymore, now that so many processors have SIMD ISAs which C can't usefully model.