Types of Program translators Flashcards

(5 cards)

1
Q

Assemblers

A

translate assembly language into machine code
assembly language has a 1 to 1 r/ship to machine code instructions translation is quick and straightforward
are platform specific, need a diff assembler for each different type of processor instruction set

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

Compilers

A

translate programs written in high level languages
take a high level program as their source code, check for any errors and then translates the whole program at once
if an error is detected it wont be translated
once translated a compiler progrma can run without requirement of any software being present

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

Interpreters

A

Translate line by line
have procedures that can be used to translate each kind of program instruction
check for errors line by line while translating
after translation both source code and interpreter itself must be present
- results in poor protection of source code

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

Compilers with intermediate language

A

some compilers first translate code into an intermediate language (often bytecode)
translates HLLC into intermediate language and then uses virtual machine to execute code on different processers

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

Source code and object code

A

source code is the name given to the input to a translator
a translators output is called object code and is produced from source code

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