Compilers and Interpreters Humans C Visual Basic JAVA
Compilers and Interpreters
Humans C++ Visual Basic JAVA High Level Language Assembly Language Machine Language HARDWARE
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
Differences �An interpreter 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
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.
Create a poster (In Word or Publisher) on the topic of compilers and interpreters �Include definitions and features of each �Advantages of each (At least 2) �Disadvantages of each (at least 2) �Use your own words Do not copy and paste. �Use images and colour to create a well laid out poster.
Resources �You. Tube video https: //www. youtube. com/watch? v=_C 5 AHa. S 1 m. OA&playnex t=1&list=PLDA 1 E 4 B 4 D 25 B 1 BB 3 D&feature=results_main �Wiki. Books http: //en. wikibooks. org/wiki/Alevel_Computing/AQA/Computer_Components, _The_Stored _Program_Concept_and_the_Internet/Fundamentals_of_Co mputer_Systems/Types_of_program_translator
- Slides: 8