MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What are the descriptors used during code generation? (You can choose more than one option)
A
Data descriptor
B
Symbol descriptor
C
Register descriptor
D
Address descriptor
Explanation: 

Detailed explanation-1: -Explanation: The code generator has to track both the registers (for availability) and addresses (location of values) while generating the code. For both of them, the following two descriptors are used: Register descriptor and Address descriptor.

Detailed explanation-2: -There are three different ways to express three address codes: Quadruple. Triples. Indirect Triples.

Detailed explanation-3: -A register descriptor is used to keep track of what is currently in each registers. The register descriptors show that initially all the registers are empty. An address descriptor stores the location where the current value of the name can be found at run time.

Detailed explanation-4: -Register and Address Descriptors: A register descriptor contains the track of what is currently in each register. The register descriptors show that all the registers are initially empty. An address descriptor is used to store the location where current value of the name can be found at run time.

Detailed explanation-5: -In computer science, three-address code (often abbreviated to TAC or 3AC) is an intermediate code used by optimizing compilers to aid in the implementation of code-improving transformations. Each TAC instruction has at most three operands and is typically a combination of assignment and a binary operator.

There is 1 question to complete.