Application Generation Flashcards

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

name the stages of compilation

A

Lexical analysis
Syntax analysis
Code Generation
Optimised

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

what happens at lexical analysis

A

comments and white spaces are removed
keywords and identifiers are replaced with tokens
symbol table is created out of the tokens
code is prepared to the next stage.

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

define token

A

fixed binary length

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

what happens at syntax analysis

A

series of tokens is passed onto this stage
code is checked if it follows the rules of the language i.e identifier - value not other way around
tokens are places in a syntax tree
errors reported in a list
error diagnostics are given

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

What do linkers do

A

Combine the source code with the library code

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

what do loaders do

A

Load the exe file into memory

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

What is static linking

A

static linking involves combining the library code to the Source code in one Exe file

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

What is dynamic linking

A

Keeps the files separate by including the storage location of the library mentioned

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

How is a loader used if dynamic linking has taken place

A

Loads EXE file into memory and then searches for any libraries used based on the addresses mentioned in the EXE file

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