Back to marketplace

U8 - COMPILATION

No description yet. This curated deck is ready for daily study.

Total cards: 14•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (14)

#1
Front (Question)

NAME THE SIX STEPS OF THE COMPILATION PROCESS

Back (Answer)

LEXICAL ANALYSIS SYMBOL TABLE SYNTAX ANALYSIS SEMANTIC ANALYSIS CODER GENERATION OPTIMISATION

#2
Front (Question)

LEXICAL ANALYSIS

Back (Answer)

Commments and unneeded spaces are removed Keywords, constants and indentifiers are replaced with tokens

#3
Front (Question)

SYMBOL TABLE

Back (Answer)

A table is created to hold the addresses of variables, labels and subroutines

#4
Front (Question)

SYNTAX ANALYSIS

Back (Answer)

Tokens are checked to see if they match the expected spelling and grammar. A message appears if an error is found.

#5
Front (Question)

SEMANTIC ANALYSIS

Back (Answer)

Variables are checked to make sure they are the right data type and have properly declared. Operations are checked to make sure they are legal for the type of variable being used.

#6
Front (Question)

CODE GENERATION

Back (Answer)

Machine code is generated for the computer to run

#7
Front (Question)

OPTIMISATION

Back (Answer)

Optimised code removes unneccessary parts Making it more efficient, quicker to run and less resource intense.

#8
Front (Question)

NAME THE SIX ERROR TYPES

Back (Answer)

LINKING ERROR EXECUTION ERROR LOGICAL ERROR SYNTAX ERROR TRUNCATION ERROR ROUNDING ERROR

#9
Front (Question)

SYNTAX ERROR

Back (Answer)

When a program does not follow the expected syntax rules of the language, i.e. missing brackets

#10
Front (Question)

RUNTIME / EXECUTION ERROR

Back (Answer)

When a program unexpectedly stops due to an invalid operation, i.e. trying to divide by 0

#11
Front (Question)

LOGICAL ERROR

Back (Answer)

Does not stop the code but produces an unexpected output The result of inputting an incorrect operation, i.e. Using + instead of -

#12
Front (Question)

LINKING ERRORS

Back (Answer)

Occurs when compiler is unable to find a subroutine called. i.e. A module is referenced but not imported

#13
Front (Question)

TRUNCATION ERROR

Back (Answer)

Numbers are not accurate, program truncates a real number to a set number of d.p. i.e. 1.6 = 1

#14
Front (Question)

ROUNDING ERROR

Back (Answer)

Occurs when a program rounds a real number to the nearest whole. i.e. 1.6 = 2