1.2.2 Applications Generation - Program Creation (Translators) Flashcards

1
Q

What is a translator?

A

A translator is a programming language processor that converts one computer language into another, usually source code to machine code

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

What is an assembler?

A

An assembler is the translator that converts a program written in assembly language to machine code.

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

What is a cross assembler?

A

A cross assembler can create code that runs on a different type of CPU to the one the assembler runs on.

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

What is a compiler?

A

Compilers translates a program written in source code into machine code. It stores this as an object file.

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

What is an interpreter?

A

An interpreter translates high-level language into machine code line by line, executing the machine code each time a line is translated.

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

What stages does a compiler go through to create the object file?

A

Lexical analysis - identifies the keywords and operators in the source code

Syntax analysis - checks that the program is written within the rules of the language

Code generation - produces the machine code to be as fast and memory efficient as possible.

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

What is the file that the machine code created by a compiler is stored in called?

A

An object file. A large program may contain many object files. These are combined using a linker.

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

What is a linker?

A

A linker is an application that combines object files and libraries to create an executable file.

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

What is assembly language?

A

Assembly language is a ‘middle ground’ between high-level and machine code. Commands are in the form of mnemonics.

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

When is assembly language most commonly used?

A

Assembly language is most often used when the program being created interacts very closely with hardware; device drivers are often written in assembly

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