Programming Language Translators Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Assemblers

A
  • Translate assembly language to machine code
  • Processor specific
  • 1 line assembly to 1 line machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Compilers

A
  • Translates HLL to machine code
  • Whole program at a time
  • Save binary executable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Compiler advantages

A
  • Program translated only once
  • Checks whole program for errors
  • Difficult to hack into
  • Produces final software ready for distribution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Interpreters

A
  • Translates HLL to machine code
  • Translates line by line
  • No binary executable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Interpreter advantages

A
  • Program run without waiting for it to compile
  • Stops at first error
  • Debugging cycle is fast
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Source code

A

code written by programmer

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

Object code

A

machine code that runs on a computer

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

Bytecode

A
  • Source code compiled into intermediate form, then interpreted.
  • For example Java bytecode can be run on any JVM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly