Translators and Interpretors Flashcards
1
Q
What is a compiler?
A
- Translate HLL/source code into machine code
- Will attempt to translate source code into machine code all at once
- If it succeeds, it will create object code or if it fails, generate an error report without running lines of code
2
Q
What is a Interpreter?
A
- Translates HLL/source code into machine code
- It will translate and execute one line at a time
- If error is found, the program will stop and only continue once all errors have been resolved
- No object code is produced
3
Q
What is an Assembler?
A
- Converts assembly code into machine code
- Similar to compiler, it will attempt to translate the whole program all at once
- If it succeeds, it will create object code, if it fails, it will generate an error report without running any lines of codes
4
Q
Assembly language uses a set of _________ to represent each opcode
A
mnemonics