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

Karteikarten

Computer Science - Unit 4: Software - 4.2 - Compilation Stages

Rebecca Hall Computing GCSE Englisch 6 Karten

Karten in diesem Stapel (6)

  1. 1Lexical Analysis- keywords are replaced by tokens (e.g. if, while, for)
    - comments and unneeded spaces are removed
  2. 2Symbol Table Construction- table created - holds variable addresses, labels and subroutines
    e.g. myNum -> memoryAddress 143
  3. 3Syntax Analysis- does the code match the rules (syntax) for the language used (e.g. does every open bracket have a close bracket)
    - no > produces a syntax error
  4. 4Semantic Analysis- Check if variables are properly declared and used - ensure they have the same data type
    - operators checked to see if legal
    e.g. 5/3 can not be stored as an integer
  5. 5Code Generation- Machine code is generated
  6. 6Optimisation- makes code more efficient (e.g. replaces repeats with loops)
    - determined by quality of compiler

Informationen

Beschreibung
Compilation Stages Definitions
Erstellt von
Rebecca Hall
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck