3 ms·
To make things a bit more clear (hope that's what you meant!): One concrete angle is that interpreters and compilers are usually intertwined: interpreters comm
by lapinot 4y ago
To make things a bit more clear (hope that's what you meant!):
One concrete angle is that interpreters and compilers are usually intertwined: interpreters commonly have an abstract machine which is some language a bit simpler to execute than the full language, thus they have a compilation step at first. And compilers do stuff like constant propagation, inlining and other flavours of partial evaluation. Thus they contain some sorts of interpreters.
Another more abstract angle is to consider interpreters as compilers into a "trivial" language consisting only of values and side effects or the flip side: considering compilers as interpreters with a non-standard semantic.