COMPLIER and INTERPRETER Flashcards

1
Q

INTERPRETER

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

COMPILER

A

Translates human-readable source code written in a programming language into machine code that a computer can execute.

Faster & more powerful than interpreter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ADVANTAGES/DISADVANTAGES

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly