This makes them slow, since they must re-translate any repeated code.
Interpreters have many advantages.
The transition from writing code to executing code is almost immediate, and the source code is always available so the interpreter can be much more specific when an error occurs. Most interpreters require that the complete source code be brought into the interpreter all at once. Not only does this introduce a space limitation, it can also cause more difficult bugs if the language doesn't provide facilities to localize the effect of different pieces of code. Compilers A compiler translates source code directly into assembly language or machine instructions. The eventual end product is a file or files containing machine code.