What is the difference between compiler and interpreter?
Answers
Answered by
3
Answer:
Interpreter translates just one statement of the program at a time into machine côde. Compiler scans the entire program and translates the whole of it into machine códe at once. An interpreter takes very less time to analyze the source côde.
A wonderful ty!❤ xD
Answered by
6
Answer:
The difference between compiler and interpreter is:
Compiler
- Compiled c0de run faster.
- Generates output program (in the form of exe), which can be run independently from the original program.
- The target program executes independently and does not require the compiler in the memory.
- Difficult to implement as compilers cannot predict what happens at turn time.
- It takes an entire program as an input.
- Display all errors after compilation, all at the same time.
Interpreter
- Interpreted c0de run slower.
- Do not generate an output program. So the programmer evaluates the source program at every time during execution.
- The interpreter exists in the memory during interpretation.
- It is best suited for the program and development environment.
- It takes a single line of c0ding as an input.
- Displays all errors of each line one by one.
Similar questions