translators Flashcards

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Compiler

A
  • Compilers translate high-level code into machine code ​all at once​, after carrying out a number of checks and reporting back any errors.
  • This ​initial compilation process is longer​ than using an interpreter or an assembler.
  • If changes need to be made, the whole program must be recompiled.
  • Once code has been compiled to produce machine code, it can only be executed on certain devices
  • compiled code is specific to a particular processor type and operating system​.
  • Code can be run ​without a translator​ being present
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Interpreter

A
  • Interpreters ​translate and execute code line-by-line​.
  • They stop and produce an error if a line contains an error.
  • They may ​initially appear faster​ than compilers as code is instantly executed, but are ​slower than running compiled code​ as ​code must be translated each time it is executed ​with an interpreter.
  • however, code can be executed on a range of platforms​ as long as the right interpreter is available, thus making interpreted code​ more portable​.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly