F453 The Function and Purpose of Translators - Stages of Compilation

Descrição

FlashCards sobre F453 The Function and Purpose of Translators - Stages of Compilation, criado por harvs899 em 02-05-2014.
harvs899
FlashCards por harvs899, atualizado more than 1 year ago
harvs899
Criado por harvs899 aproximadamente 10 anos atrás
135
0

Resumo de Recurso

Questão Responda
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.

Semelhante

A level Computing Quiz
Zacchaeus Snape
Computing Hardware - CPU and Memory
ollietablet123
Using GoConqr to learn French
Sarah Egan
A Level: English language and literature technique = Dramatic terms
Jessica 'JessieB
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
A Level: English language and literature techniques = Structure
Jessica 'JessieB
Maths C4 Trig formulae (OCR MEI)
Zacchaeus Snape