Code Generation Compiler Design

@T-Bone

This question paper focuses on the "Code Generation" of Compiler Design. These Multiple Choice Questions (mcq) should be practiced to improve the Compiler Design skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

This question paper focuses on the "Code Generation" of Compiler Design. These Multiple Choice Questions (mcq) should be practiced to improve the Compiler Design skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

Questions

1. Code generation can be considered as the?

Mark the correct option

2. ___________ is a tool that depicts the structure of basic blocks, helps to see the flow of values flowing among the basic blocks, and offers optimization too.

Mark the correct option

3. In Directed Acyclic Graph, Leaf nodes represent?

Mark the correct option

4. In Algebraic expression simplification, a = a + 1 can simply be replaced by?

Mark the correct option

5. x * 2 can be replaced by x << 1 is an example of?

Mark the correct option

6. The following code is an example of? void add_ten(int x) { return x + 10; printf(""value of x is %d"", x); }

Mark the correct option

7. How many descriptors are used for track both the registers (for availability) and addresses (location of values) while generating the code?

Mark the correct option

8. __________ are used to keep track of memory locations where the values of identifiers are stored.

Mark the correct option

9. Code generator uses ______ function to determine the status of available registers and the location of name values.

Mark the correct option

10. Which of the following is not a form of Intermediate representation?

Mark the correct option

Index of Questions