Chapter 10 - Programming language translators Flashcards

You may prefer our related Brainscape-certified 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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly