translators Flashcards
(4 cards)
1
Q
traslator
A
A translator is a program that converts high-level source code into low-level object code, which is then ready to be executed by a computer
2
Q
Compiler
A
- Compilers translate high-level code into machine code all at once, after checking for errors.
- This process takes longer than using an interpreter.
- If changes are made, the whole program must be recompiled.
- The compiled code is device-specific and can only run on certain processors and operating systems, but it doesn’t need a translator to run.
3
Q
Interpreter
A
- Interpreters translate and run code line by line, stopping if there’s an error.
- They seem faster at first since code runs immediately, but are slower overall because they re-translate every time.
- Interpreted code is more portable, as it can run on different platforms with the right interpreter.
4
Q
assembler
A
Assemblers translate assembly code into machine code.
Each line of assembly code is equivalent to almost one line of machine code so code is translated on almost a one-to-one basis.