4 ms·
Best example I know of: You have M languages, and N computer architectures. You want a compiler from every language to every architecture, but don't want to wr
by hoosieree 4y ago
Best example I know of:
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.