GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

stages of code compilation

jake andrews Computing GCSE Englisch 6 Karten

Karten in diesem Stapel (6)

  1. 1Lexical Analysis- comments and unneeded spaces are removed
    - keywords, constants and identifiers are replaced by tokens
  2. 2Symbol Table Construction-a symbol table is created which holds the addresses of variables, labels and subroutines
  3. 3Syntax Analysis- tokens are checked to see if they match the spelling and grammar expected, using standard language definitions. this is done by parsing each token to determine if it uses the correct syntax for the programming language
    - If syntax errors are found, error messages are produced.
  4. 4Semantic Analysis- Variables are checked to ensure that they have been properly declared and used.
    - Variables are checked to ensure that they are of the correct data type, e.g. real values are not being assigned to integers
    - Operations are checked to ensure that they are legal for the type of variable being used, e.g. you would not try to store the result of a division operation as an integer
  5. 5Code Generation- machine code is generated
  6. 6Code Optimization- Code optimization may be employed to make it more efficient/faster/less resource intense.

Informationen

Beschreibung
GCSE Computing Karteikarten am stages of code compilation, erstellt von jake andrews am 31/03/2021.
Erstellt von
jake andrews
Aufrufe
0
Bewertung

Mehr zu Stages of Compilation

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck