TOOLS AND TECHNIQUES FOR COMPILER DESIGN
MISCELLENOUS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Data descriptor
|
|
Symbol descriptor
|
|
Register descriptor
|
|
Address descriptor
|
Detailed explanation-1: -For both of them, the following two descriptors are used: Register descriptor and Address descriptor.
Detailed explanation-2: -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-3: -Address descriptors are used to keep track of memory locations where the values of identifiers are stored.
Detailed explanation-4: -The three-address code is a sequence of statements of the form A−=B op C, where A, B, C are either programmer-defined names, constants, or compiler-generated temporary names, the op represents an operator that can be constant or floatingpoint arithmetic operators or a Boolean valued data or a logical operator.