answersLogoWhite

0

Interpreter

An interpreter is given a computer program to run and it is executed (or performed) line by line. It simply reads a line of code (in the programs native language (ie English Basic) and performs the instructions one by one. After each line has been completed, the next on is accessed and duly performed until the program is finished.

The syntax of the program may have errors in it and these are not found out until the program is run.

The user must have the source code to be able to run the program (some interpreters produces a tokenised version of the source code to speed up execution of the program and reduce disk storage.)

Compiler.

With a compiler, the entire code is translated into machine code before it is run and then saved to disk for future use. The entire program must be 100% syntax correct before the program is translated and saved to disk. Several other parts of the program (called libraries) can be linked with the program to produce the final product. Test compilations usually are performed to avoid a large number of compile errors at once. The compiled program is accessed by the user but they do not need the source code to use the program. The same program run as a compiled program will usually outperform an interpreted on.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: What is difference between interpreters and compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp