Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

What are the similarities and differences between compilers and interpreters?

Compare and contrast compilers and interpreters.

Answers


Maurice
(a) A compiler translates the whole source code first before execution starts whereas an interpreter translates the next line and so on until the whole conversion is complete.

(b) A compiler produces and stores objects code after compilation whereas an interpreter produces but does not store object code after interpretation.

(c) A compiler occupies large memory to store compiled executable (exe) object code.
An interpreter occupies less memory because it does not store executable object code.

(d) Compilers are faster because they translate the entire source code at once and store the object code.
Interpreters are generally slower than compiled programs due to the per-line translation method.
maurice.mutuku answered the question on April 19, 2018 at 06:52

Answer Attachments

Exams With Marking Schemes

Related Questions