Compiler vs Interpreter
1. Definition
- Compiler - Compiler is program that translates source code into object code.
- Interpreter - An Interpreter is a program, which converts each high-level program statement into machine code just before the program statement is to be executed.
2.
- Compiler - Compiler converts all the statements in source code to object code and finally in executable code resulting an .exe file
- Interpreter - Interpreter converts each statements before executing it. It does not produce an .exe file
3.
- Compiler - Compiler requires some time before producing an executable program.
- Interpreter - Interpreter can execute a program immediately.
4.
- Compiler - Once compiled, program does not require recompile for next run. Therefore executable programs produced by compilers run much faster and efficient
- Interpreter - For running next time, it is required to repeat the process from the beginning. So it is slower process.
5. Example
- Compiler - C,C++, FORTAN are examples of compiled languages.
- Interpreter - BASIC, LIPS are interpreted language



No comments:
Post a Comment