COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When code is generated for “a < b and c > d", the locations left for backpatching are
A
falselist of a < b
B
falselist of a < b and falselist of c > d
C
falselist of a < b, falselist of c > d, truelist of c > d
D
truelist of a < b, falselist of a < b, truelist of c > d, falselist of c > d
Explanation: 

Detailed explanation-1: -Backpatching technique is incorporated using three functions. Makelist(), merge() and backpatch() are the three functions carried out in two passes to generate code using backpatching. makelist(i) – This is used to create a new list containing three-address location i, and it returns a pointer to the list.

There is 1 question to complete.