1.2 Translators Flashcards

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

What are Translators ?

A

Convert programming languages into
machine code.

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

What is a Assembler ?

A

Converts assembly mnemonics to machine code.
(Each chip set has its own assembly code.)

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

What is a interpreter ?

A

Converts high level code to machine
code one line at a time.

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

What are some features of interpreters ?

A
  • Machine independent.
  • Work with high level languages.
  • Requires the source code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do interpreters work ?

A

Run until they hit an error
Have to be interpreted every time.
Requires the source code.

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

What are some advantages and disadvantages of interpreters ?

A

Runs immediately.
Runs until it hits an error.

However…

Some parts of the code may never be run.

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

How does a Compiler work ?

A

Reads the whole code, then translates it to machine code.
Creates an executable (.exe)
Code only has to be compiled once.

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

What are some advantages and disadvantages of a Compiler ?

A

Translates the entire code.

However…

  • Takes time to compile.
  • Might not compile at all if there are errors.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly