If we change the compiler of C++ and use an interpreter , how will it affect C++ language in terms of processing speed, efficiency ?

 If we change the compiler of C++ and use an interpreter, how will it affect C++ language in terms of processing speed, efficiency?

C++ language:
the compiler of C++:
interpreter :

Solution:

 Interpreters are easy to use and they don’t need any large memory on a computer. It can run the program even if it is not completed and we can stop the program at any instance when we notice any mistake. In this way, they remove debugging. But if we change the compiler of  C++ and use an interpreter instead, it will affect C++ language in terms of processing speed, efficiency, or other factors in the following way; 
The interpreter translates the code line by line on the other hand compiler translates the whole program but the overall execution speed of the interpreter is much slower which means it is time-consuming. The compiler transforms code written in a high-level programming language into the machine code, at once, before the program runs, Compiled code runs faster while interpreted code runs slower.

Post a Comment

0 Comments