Types of Program Translators Flashcards

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

What are the types of program translators

A

Assemblers, Compilers and Interpreters

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

How do assemblers work

A

Translated Assembly Language into Machine Code

Machine Code and Assembly Language have a 1-1 Relationship

Platform Specific

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

How do compilers work

A

Take high level program as their source code

Check for any errors

Translate the entire program at once

Platform specific

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

How do interpreters work

A

Translate high level languages into machine code line by line

Check for errors as they go - code line by line

Source Code and Interpreter must be present during translation - makes original code difficult to extract

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

What happens when some compilers don’t produce machine code straight away

A

They translate source code into an intermediate language

Intermediate language is often bytecode - allows for platform independence

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

What is Object Code

A

A translators output

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

What is Source Code

A

The input to a translator

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

What is a translator

A

A program that converts statements written in one language into another

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

Advantages of an interpreter

A

If an error is found the source code can be corrected

Easier to use when developing program as a program can sort out each problem as an interpreter comes across it

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

Advantages of a compiler

A

Runs faster than an interpreter

Machine code can be run on a computer without a compiler

Compiler program doesn’t have to be resident in memory at the same time as the program

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