3 ms·
No, it wouldn't mean recompiling for every CPU revision. Today's CPUs contains a kind of JIT compiler implemented in hardware. There is no reason why this JIT
by still_grokking 8y ago
No, it wouldn't mean recompiling for every CPU revision.
Today's CPUs contains a kind of JIT compiler implemented in hardware. There is no reason why this JIT compiler couldn't be implemented in Software.
A lot of business-software runs already in some kind of VM, with a JIT compiler. This JIT compilers could easily spit out the hardware depended low-level code instead of e.g. x64 ASM. So a new hardware revision would only require an update to the runtime's JIT compiler.
I think IBM is doing something similar for decades now with their mainframes. "Native" executable are "only" some byte-code so you don't ever need to recompile your applications when you upgrade the hardware.