// Anna University, Chennai / 2024
Anna University — Compiler Design (CS3501), November/December 2024
Compiler Design · CS3501 · R2021 · B.E. Computer Science and Engineering · Semester 5
Files open in a new tab. Use your browser's download or save option to keep a copy.
Work through the questions
16 questions
No verified answers are available for this paper.
State the term interpreter.
No verified answer or solution is available for this question.
Write the major task of lexical analyzer.
No verified answer or solution is available for this question.
Mention the role of parser.
No verified answer or solution is available for this question.
Specify the error recovery in YAAC.
No verified answer or solution is available for this question.
Express the construction of syntax tree.
No verified answer or solution is available for this question.
Source-language expression is x+y*z and translate it into the sequence of three-address code instructions.
No verified answer or solution is available for this question.
Differentiate between static and dynamic storage allocation.
No verified answer or solution is available for this question.
Define flowgraph.
No verified answer or solution is available for this question.
Identify the causes of redundancy.
No verified answer or solution is available for this question.
Write the principal sources of optimization.
No verified answer or solution is available for this question.
(a) Draw the phases of compiler and describe each phase of it. (OR) (b) Define finite automata. Explain the two types of finite automata with suitable example.
No verified answer or solution is available for this question.
(a) Construct a parse tree for the input string starting from the root and creating the nodes of the parse tree in preorder using top-down parsing. (OR) (b) Write the error handling process and recovery in syntax analyzer.
No verified answer or solution is available for this question.
(a) Summarize how to construct syntax trees for simple expressions. (OR) (b) Discuss about the things behind type checking in intermediate code generation.
No verified answer or solution is available for this question.
(a) With neat diagram illustrate typical subdivision of run-time memory into code and data areas. (OR) (b) Elaborate the issues in the designing of a code generator.
No verified answer or solution is available for this question.
(a) State and explain peephole optimization as an effective technique to improve the locally target code. (OR) (b) Write short notes on optimization of basic blocks using Directed Acyclic Graph (DAG).
No verified answer or solution is available for this question.
(a) "A Syntax-Directed Definition (SDD) is a context-free grammar together with attributes and rules". - Justify the statement. (OR) (b) Write a review on the "recent trends in compiler design".
No verified answer or solution is available for this question.