Csc 204 ( Compiler Design And Construction) Flashcards
(3 cards)
1
Q
What is a compiler
A
A compiler is a program that accepts an input program text in a certain language and produces and output program text in another language while reserving the meaning of the text
2
Q
Qualities of a good compiler
A
1) produces fast code
2) produces correct code
3) conforms to the specifications of the input language
4) Copes with essentially arbitrary input size variables
5) compilation time is proportional to the size of the input program
3
Q
Phases of compiler
A
1) lexical analysis
2) syntax analysis
3) semantic analysis
4) intermediate code generation
5) code optimization
6) target code generation