3 ms·
> The thing about speculative execution and out of order execution to remember is that you always get the expected result from a single threaded perspective. C
by claudius 10y ago
> The thing about speculative execution and out of order execution to remember is that you always get the expected result from a single threaded perspective.
Could you elaborate on this? I thought at least speculative execution was handled internally in the CPU and essentially not visible to the user apart from the performance impact?
I’m not sure what you refer to as out-of-order execution, is this execution reordering within the C compiler?
> If you throw in interrupts or threads, you know you must tread cautiously in C.
Naturally, yes.