Fichas
F453 The Function and Purpose of Translators - Stages of Compilation
Fichas del conjunto (12)
- 1What is the first stage in a compiler?Lexical analysis.
- 2What is the input to the lexical analyser?The source code.
- 3What is the output from the lexical analyser?A token stream.
- 4What is the second stage in the compiler?Syntax analysis.
- 5What is the final stage of compilation?Code generation and optimisation.
- 6What is remove during lexical analysis?Whitespace and code comments.
- 7Where are identifiers placed?In the symbol table.
- 8What are tokens?Tokens are a symbolic representation of the input characters.
- 9What is the group of characters called which represent a token?The lexeme.
- 10Which is the slowest stage of compilation and why?Lexical analysis, because it deals with the code in its most abstract form.
- 11What 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).
- 12Which stage is the machine code generated?Code generation and optimisation.
Información
- Descripción
- Fichas sobre F453 The Function and Purpose of Translators - Stages of Compilation, creado por harvs899 el 02/05/2014.
- Creado por
- harvs899
- Visitas
- 160
- Etiquetas
- Valoración