Interpreter and compiler are both use for translate the convoluted machine language.
Their objective is same but these are very different from each other
Interpreter
translate each of instruction immediately one by one. It always between program
and computer; and translate line by line right away
It is a rather slow process because the machine has to wait while each instruction is being translated but on the other hand it does give a chance to correct mistakes as we go along.
Compiler takes extra preparation time before program can run.
Compiler pile
together the entire program and translate the whole thing all at once. All this
has taken some time but now on things will go very fast. Program run very
quickly and efficiently.
But if there
was mistake in instruction, then it can’t be edified and it’s too late then.
Comments
Post a Comment