Translators Flashcards
What does an assembler do?
Converts assembly code to machine code
What do compilers and interpreters do?
Converts source code to machine code
Advantages of an assembler?
Memory efficient
Faster speed of execution
Hardware orientated
Disadvantages of an assembler?
Long programs cannot be executed on a small computer
More difficult to write and remember how to write
cannot be ported between computers of different makes
Advantages of a compiler?
No translation at run time
Speed of execution faster
Optimised code
Original source code hidden
Disadvantages of a compiler?
Code needs to be recompiled when changed
Designed for a specific type of processor
Advantages of an interpreter?
Easy to write as program will always run
Code does not need to be recompiled when changed
Easy to learn as fixes can be trialed when an error is found
Disadvantages of an interpreter?
Translation software is required at run time
Speed of execution is slower
Code is not optimised
Source code required