3 ms·
Is speculative execution actually worth it? Can't compilers do the job and optimize execution sufficiently so we won't need speculative execution? Anyway, "cac
by qwerty456127 9y ago
Is speculative execution actually worth it? Can't compilers do the job and optimize execution sufficiently so we won't need speculative execution?
Anyway, "caches of any sort" sounds frightening: I can remember disabling all the caches on Pentium-3 to make it about as slow as 80386 so some ancient games that can't run on fast CPUs would run ok and be playable.
- thristian 9y agoSpeculative execution is a workaround for the fact that CPUs read and process data much more quickly than main memory can provide it. The CPU tries to trace as many code-paths as possible so it can discover which memory addresses are likely to be used in the near future and queue them up so they'll be ready in the local cache when they're needed. Smarter compilers wouldn't really help, this is all about how the code is running for the next millisecond on this specific workload on this specific CPU, rather than how it's running today or on this cluster or in general.
- AlphaSite 9y agoIA64 would like to reaffirm that this indeed worthwhile.