Chapter 10 - Programming language translators Flashcards
1
Q
Assembler
A
translates low level assembly language (source code) into machine code (object code that is executable, but is dependent on hardware) or an intermediate, byte code
2
Q
Compiler
A
translates high level languages to machine code; scans source code to build up information to translate to object code (different compilers needed for different hardware)
- No need to recompile unless if error is spotted
- Runs faster than interpreter
- Can be distributed without source code
3
Q
Interpreter
A
scans one line at a time and if it contains no syntax errors, executes it
Can be run on any computer with appropriate interpreter
4
Q
Bytecode
A
- Intermediate between compiling the interpreting
- Translated by byte code interpreter
- Platform independence – byte code can be translated to any specific machine code
- Extra security layer – protects against malicious software