F453 The Function and Purpose of Translators - Stages of Compilation

Beschreibung

Karteikarten am F453 The Function and Purpose of Translators - Stages of Compilation, erstellt von harvs899 am 02/05/2014.
harvs899
Karteikarten von harvs899, aktualisiert more than 1 year ago
harvs899
Erstellt von harvs899 vor mehr als 10 Jahre
136
0

Zusammenfassung der Ressource

Frage Antworten
What is the first stage in a compiler? Lexical analysis.
What is the input to the lexical analyser? The source code.
What is the output from the lexical analyser? A token stream.
What is the second stage in the compiler? Syntax analysis.
What is the final stage of compilation? Code generation and optimisation.
What is remove during lexical analysis? Whitespace and code comments.
Where are identifiers placed? In the symbol table.
What are tokens? Tokens are a symbolic representation of the input characters.
What is the group of characters called which represent a token? The lexeme.
Which is the slowest stage of compilation and why? Lexical analysis, because it deals with the code in its most abstract form.
What is the purpose of the syntax analysis stage? To check that the source code is syntactically correct based on the rules of the language (often defined by BNF or syntax diagrams).
Which stage is the machine code generated? Code generation and optimisation.
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

A level Computing Quiz
Zacchaeus Snape
Computing Hardware - CPU and Memory
ollietablet123
All AS Maths Equations/Calculations and Questions
natashaaaa
Biological Definitions
Yamminnnn
Using GoConqr to teach French
Sarah Egan
Using GoConqr to teach science
Sarah Egan
Using GoConqr to study geography
Sarah Egan
Using GoConqr to study Economics
Sarah Egan
Using GoConqr to study English literature
Sarah Egan
Using GoConqr to learn French
Sarah Egan
A Level: English language and literature techniques = Structure
Jessica 'JessieB