1.2.2 Applications Generation Flashcards

1
Q

What are the stages of compilation?

A

● Lexical analysis
● Syntax analysis
● Code generation
● Optimisation

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

What happens during syntax analysis?

A

● Tokens are compared to the rules of the
programming language
● Syntax errors are identified and reported as a list
● Detail added to
● Semantic analysis (finding logic errors)

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

What happens during the lexical analysis?

A

● Comments and whitespace are removed
● Variables, and subroutines stored in a symbol table
● Code is converted into tokens

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

What happens at code generation and optimisation?

A

● Object code is created
● Will attempt to reduce any redundancy by producing object code that achieves the same effect specified by the source program

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

What does the linker do?

A

Combines together a number of separate object codes so that the modules are linked together correctly

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

What does the loader do?

A

Loads an executable program into the main memory

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

What is a library?

A

A collection of ready-complied programs, which can be loaded and run when required

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