Compiled program fasteer why?
it is obvious that it is convinient to develop a NEW program using an interpreter(C) rather than a compiler.But once an error free pgm has been developed, a compiled version will normally EXECUTE FASTER than an interpreter..WHY?
a compiler program is one that is convertedt into a sequence ofbytes that denotes the opcodes that the processor of your computer willunderstand. So when a compiled program runs all it actually does is thatthe bytes of program are sent to the procress one by one and this causesthe processer to do the things that you wanted the program to do.
When you interpret a program the 'interpreter' program is the one thatis executed by your processor and it executes sequences ofcommands/intructions that in effect will simulate the commands in yourprogram. So since at every point there is mediator between your programand the computer hardware, the interpreted program runs slower.Do you understand ?
a compiler program is one that is convertedt into a sequence ofbytes that denotes the opcodes that the processor of your computer willunderstand. So when a compiled program runs all it actually does is thatthe bytes of program are sent to the procress one by one and this causesthe processer to do the things that you wanted the program to do.
When you interpret a program the 'interpreter' program is the one thatis executed by your processor and it executes sequences ofcommands/intructions that in effect will simulate the commands in yourprogram. So since at every point there is mediator between your programand the computer hardware, the interpreted program runs slower.Do you understand ?

0 Comments:
Post a Comment
<< Home