MUST KNOW Flashcards

1
Q

A.0

A

0

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

A.1

A

A

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

A.A

A

A

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

A.(not A)

A

0

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

A+0

A

A

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

A+1

A

1

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

A+A

A

A

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

A+(not A)

A

1

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

5 stages of compilation

A
  1. Lexical analysis
  2. Syntax analysis
  3. Semantic analysis
  4. Code generation
    5 code optimisation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What happens in lexical analysis

A

Comments and spaces are removed
Constants keywords and identifiers are replaced by tokens
A symbol table is created containing the addresses of all variables labels and subroutines

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

What happens in syntax analysis

A

Tokens are checked against the assemblers rules of syntax
Parsing happens

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

What is parsing

A

Systematically breaking down tokens into their component parts to see if they use the correct syntax

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

What happens in semantic analysis

A

Variables are checked to ensure they are off the correct data type and they have been properly declared and used
Operations are checked h to ensure they are legal for the data type used

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