Re:The Evolution of the QEMU Translator
by CodesInChaos on Friday January 29, 2021 @03:51PM
(#25962347)
You might want to take a look at Partial evaluation, which is a similarly elegant technique.
https://en.wikipedia.org/wiki/Partial_evaluation
https://labs.oracle.com/pls/apex/f?p=LABS:0::APPLICATION_PRO...
So a compiler from one architecture to another which is as easy to write as an interpreter (but without interpreter overhead), is independent of the target architecture - and it just works. I remember being blown away by the elegance.