Compilation and Interpretation:
Compilation:
The compiler translates the high-level source program into an equivalent target program (typically in machine language) and then goes away.
Interpretation:
An alternative style of implementation for high-level languages is known as interpretation.
Interpreter stays around for the execution of the application.
In fact, the interpreter is the locus of control during that execution.
Interpretation leads to greater flexibility and better diagnostics (error messages) than does compilation.
Because the source code is being executed directly, the interpreter can include an excellent source-level debugger.
Delaying decisions about program implementation until run time is known as latebinding;
Share with your friends: |