COMPLIER and INTERPRETER Flashcards
INTERPRETER
reads the source code line by line and immediately executes each line
Makes it easier to develop and test code.
If error found execution is stopped.
COMPILER
Translates human-readable source code written in a programming language into machine code that a computer can execute.
Faster & more powerful than interpreter.
ADVANTAGES/DISADVANTAGES
COMPILER:
Compiled code tends to run faster than interpreted code.
Source code more secure when using compiler.
Compiling can be a time-consuming process, especially for large programs.
INTERPRETER:
Debugging is easier since the interpreted code is more transparent and easier to analyze.
Interpreters can be more flexible than compilers.
Interpreted code tends to run slower than compiled code.