Programming Language Translators Flashcards
1
Q
Assemblers
A
- Translate assembly language to machine code
- Processor specific
- 1 line assembly to 1 line machine
2
Q
Compilers
A
- Translates HLL to machine code
- Whole program at a time
- Save binary executable
3
Q
Compiler advantages
A
- Program translated only once
- Checks whole program for errors
- Difficult to hack into
- Produces final software ready for distribution
4
Q
Compiler disadvantages
A
- Can be slow
- One error can cause follow on errors
- Debugging can be slowed by needing to recompile
- Altered code needs to be recompiled
5
Q
Interpreters
A
- Translates HLL to machine code
- Translates line by line
- No binary executable
6
Q
Interpreter advantages
A
- Program run without waiting for it to compile
- Stops at first error
- Debugging cycle is fast
7
Q
Interpreter disadvantages
A
- Running can be slow as must interpret as it goes along
- Each syntax error needs ta run edit run cycle to cure
- Program needs interpreter to run
- Others can examine source code
8
Q
Source code
A
code written by programmer
9
Q
Object code
A
machine code that runs on a computer
10
Q
Bytecode
A
- Source code compiled into intermediate form, then interpreted.
- For example Java bytecode can be run on any JVM