What is the difference between compiler and interpreter

Leave a Reply

To leave a comment, please Login or Register

Comments (1)

Akshat Gupta Selected

Akshat Gupta

1 year ago
Compiler programs take up more memory because the entire object code has to reside in memory.

Interpreter does not generate intermediate object code, it generates machine code. As a result, the interpreter program requires less memory.

The compiler executes conditional control statements (such as if-else and switch-case) and is logically faster than the interpreter.

The interpreter executes conditional control statements very slowly.