Presentation is loading. Please wait.

Presentation is loading. Please wait.

Compilers and Interpreters

Similar presentations


Presentation on theme: "Compilers and Interpreters"— Presentation transcript:

1 Compilers and Interpreters

2 Humans C++ Visual Basic JAVA Assembly Language Machine Language
High Level Language Assembly Language Machine Language HARDWARE

3 Similarities A Compiler and Interpreter both carry out the same purpose Translates a high level language (like C++, Java) instructions into the binary form which is understandable by computer hardware (Machine language). Compiler Interpreter

4 Differences An interpreter A Compiler
Reads one statement then translates it and executes it and then takes another. Easy to check for mistake(debug) than a compiler Programme instructions are performed slowly A Compiler Translates the entire program in one go and then executes it (.exe file). Hard to spot and correct mistakes Cannot make changes once executable programme is created. Programme instructions are performed quickly

5 Uses An interpreter is used for program development as it is easier to debug and partially test the code. Once the program is error free and complete, the program should then be compiled, as compiling only needs to be done once.


Download ppt "Compilers and Interpreters"

Similar presentations


Ads by Google