Question #202387

Outline one advantage and one disadvantage of using a compiler, as opposed to using an interpreter. 


Expert's answer

Advantages of a compiler

It is faster during execution because compilation is only done once to convert source code to object code

Disadvantage of a compiler

During compilation a new object file is generated hence needing more space.it

May not be appropriate for systems that have small memory like embedded systems.

Advantage of an interpreter.

During interpretation no object file is generated hence works well in embedded systems with limited space.

Disadvantage of an interpreter

The execution is slower since each time execution is needed codes must be translated taking a lot of time.



LATEST TUTORIALS
APPROVED BY CLIENTS