Mind map
Compilers VS Interpreters.
Map content
Compilers VS Interpreters.
Advantages for compiler over interpreter:
- Object code is saved on disk and run whenever required without need to recompile.
- however, if error is found, the entire program will need to be recompiled.
- object code executes faster than interpreted code.
- object code produced by compiler can be distributed/executed without original compiler present
- Object code is more secure.
- cannot be read without a great deal of reverse engineering
- Compiler is appropriate when code needs to be run frequently, with occasional changes.
- also when object code is going to be sold outside of the original producers of the code.
- source code not present. therefore cannot be copied or amended.
- also when object code is going to be sold outside of the original producers of the code.
- Object code is saved on disk and run whenever required without need to recompile.
Advantages of interpreters over compilers.
- platform independence
- source code can be run on any machine with appropriate intepreter
- useful for program development
- No need for recompiling each time an error is detected.
- platform independence
Disadvantages for interpreters
- runs slower than a compiled program.
- Each statement has to be translated to machine code each time its encountered
- e.g if a loop of 10 is performed 20 times, all 10 statements are interpreted 20 times.
- runs slower than a compiled program.
Information
- Description
- AS level Computing Mind Map on Compilers VS Interpreters., created by usmaan saeed on 27/11/2017.
- Created by
- usmaan saeed
- Views
- 1
- Rating
More on Compilers, Interpreters and Assemblers