Stages of Compilation Flashcards

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

What are the three stages of Compilation?

A
  1. Lexical Analysis
  2. Syntactic Analysis
  3. Code Generation and Optimisation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Lexicon?

A

A Lexicon is a collection of key terms that the compiler is designed to understand.

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

What is a Lexeme

A

This is the smallest unit of language that cannot be broken down further without losing meaning.

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

During Lexical analysis what is the compiler trying to identify and what is it?

A

Identifiers - names for procedures, variables and constants

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

What is a token

A

A token is when a lexeme is converted into a fixed length binary number

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