compilers and interpreters. hardware machine languageassembly language high level language c++...

8
Compilers and Interpreters

Upload: dwight-walton

Post on 21-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans

Compilers and Interpreters

Page 2: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans

HARDWARE

Machine Language

Assembly Language

High Level Language

C++ Visual Basic JAVA

Humans

Page 3: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans

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

Page 4: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans

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

Page 5: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans

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.

Page 6: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans

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.

Page 7: Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans