Computer Science for IGCSE & O level - Programming (Section 8 - No. 45)

What is the main difference between a compiler and an interpreter?
A compiler translates code line by line, while an interpreter translates the entire code at once.
A compiler translates the entire code at once, while an interpreter translates code line by line.
Compilers are only used for machine code; interpreters are not.
Interpreters run the code faster than compilers.

Explanation

A compiler translates the entire program at once, while an interpreter translates line by line.

Comments (0)

Advertisement