Compiler Design

105601
Back to Compiler Design

Module 4: Intermediate Code Generation, Code Improvement (optimization)

  1. Q1d. Three-address code involves (i) Exactly 3 address (ii) At most 3 addresses (iii) No unary operator (iv) None20232m

    Module 4: Intermediate Code Generation, Code Improvement (optimization)

    Three-address code involves
    (i) Exactly 3 address
    (ii) At most 3 addresses
    (iii) No unary operator
    (iv) None

    View this question on its own page →
  2. Q1i. The method which merges the bodies of two loops is (i) Loop rolling (ii) Loop Jamming (iii) Constant folding (iv) None of the above20232m

    Module 4: Intermediate Code Generation, Code Improvement (optimization)

    The method which merges the bodies of two loops is
    (i) Loop rolling
    (ii) Loop Jamming
    (iii) Constant folding
    (iv) None of the above

    View this question on its own page →
  3. Q8b. Translate the expression a = (a + b) * (c + d) + (a + b + c) into (i) Quadruple (ii) Triple (iii) Indirect triple20239m

    Module 4: Intermediate Code Generation, Code Improvement (optimization)

    Translate the expression a=(a+b)(c+d)+(a+b+c)a = (a + b) * (c + d) + (a + b + c) into
    (i) Quadruple
    (ii) Triple
    (iii) Indirect triple

    View this question on its own page →