Skip to content

// 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.

  1. Question 1

    Part ADescriptive2 marks

    Compilers

    State the term interpreter.

    No verified answer or solution is available for this question.

  2. Question 2

    Part ADescriptive2 marks

    Compilers

    Write the major task of lexical analyzer.

    No verified answer or solution is available for this question.

  3. Question 3

    Part ADescriptive2 marks

    Compilers

    Mention the role of parser.

    No verified answer or solution is available for this question.

  4. Question 4

    Part ADescriptive2 marks

    Compilers

    Specify the error recovery in YAAC.

    No verified answer or solution is available for this question.

  5. Question 5

    Part ADescriptive2 marks

    Compilers

    Express the construction of syntax tree.

    No verified answer or solution is available for this question.

  6. Question 6

    Part ADescriptive2 marks

    Compilers

    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.

  7. Question 7

    Part ADescriptive2 marks

    Compilers

    Differentiate between static and dynamic storage allocation.

    No verified answer or solution is available for this question.

  8. Question 8

    Part ADescriptive2 marks

    Compilers

    Define flowgraph.

    No verified answer or solution is available for this question.

  9. Question 9

    Part ADescriptive2 marks

    Compilers

    Identify the causes of redundancy.

    No verified answer or solution is available for this question.

  10. Question 10

    Part ADescriptive2 marks

    Compilers

    Write the principal sources of optimization.

    No verified answer or solution is available for this question.

  11. Question 11

    Part BDescriptive13 marks

    Compilers

    (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.

  12. Question 12

    Part BDescriptive13 marks

    Compilers

    (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.

  13. Question 13

    Part BDescriptive13 marks

    Compilers

    (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.

  14. Question 14

    Part BDescriptive13 marks

    Compilers

    (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.

  15. Question 15

    Part BDescriptive13 marks

    Compilers

    (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.

  16. Question 16

    Part CDescriptive15 marks

    Compilers

    (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.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam