by hoosieree · 4y ago · 0 comments
You have M languages, and N computer architectures. You want a compiler from every language to every architecture, but don't want to write M*N compilers.
One solution is to make a virtual machine. Now, you write M language-to-VM compilers, and N VM-to-cpu compilers, so you only have to write M+N compilers.