Compiler
Interpreter
1. Converts the whole program into machine code and then
executes the entire program.
1. Converts the program into machine code one step at a time and
then runs only that step.
2. Lists all errors after compilation.
2. Immediately displays any error in any line of the program after
the translation of that line.
3. Requires less execution time.
3. Requires more execution time.
4. Not especially efficient for debugging.
4. Efficient for debugging.
5. Creates only one .exe file (for example, C/C++ compilers, TC
compiler, etc.).
5. Does not create .exe file (for example, V. B. 6.0 interpreter).
Example
Do'stlaringiz bilan baham: |