Revision 3

Interpreter

Advantages

Compiler

Translates high-level code to machine code
Reads the whole source code
Creates an executable file but it can only be executed on the family processor

Advantages

Execution of software is quicker
Original source code is hidden from users
Compilers can optimise code

click to edit

Drawbacks

Will only work on specific type of architecture
Each time code changes it needs to be compiled again
Debugging is harder

Needs to be installed on every machine that executes the program


Translation must be repeated each time program is executed


Source code must be available


Code is not fully optimised

Useful for debugging
Uses less memory
Programs can be available cross-platform

Drawbacks

click to edit

Compiler:A compiler takes the source code as a whole and translates it into object code all in one go

Interpreter:An interpreter translates source code line by line at a time.

Where are they found?

click to edit

Translators such as compilers and interpreters are used/found within IDEs.

IDEs are used for helping maintainability in code by having a variety of features available e.g Auto indentation,Bracket matching and debugging.

Assemblers

What are they?

Assemblers are a third type of translator. The purpose of an assembler is to translate assembly language

click to edit

Features of IDE

click to edit

editors

runtime environments

automatic line numbering

error diagnosis

colour coding

debugger

trace

break points

variable watch

auto-correct

auto-suggestion

compiler

interpreters

Auto Indentation

click to edit

click to edit

click to edit

click to edit