F453 The Function and Purpose of Translators - Stages of Compilation

Description

Flashcards on F453 The Function and Purpose of Translators - Stages of Compilation, created by harvs899 on 02/05/2014.
harvs899
Flashcards by harvs899, updated more than 1 year ago
harvs899
Created by harvs899 over 10 years ago
136
0

Resource summary

Question Answer
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.
Show full summary Hide full summary

Similar

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
Realidad De Nuestra Identidad Cultural
53831