Consider the following statements about the use of backpatching in a compiler for
(I) Backpatching can be used to generate code for Boolean expression in one pass.
(II) Backpatching can be used to generate code for flow-of-control statements in one pass.
Which ONE of the following options is CORRECT?
Given the following syntax directed translation rules :
Rule 1 : $R \rightarrow A B\{B . i=R . i-1 ; A . i=B . i R . i=A . i+1 ;\}$
Rule 2 : $P \rightarrow C D\{P . i=C . i+D . i ; D . i=C . i+2\}$
Rule 3 : $Q \rightarrow E F\{Q . i=E . i+F . i ;\}$
Which ONE is the CORRECT option among the following?
Consider the following ANSI C program:
int main() {
Integer x;
return 0;
}
Which one of the following phases in a seven-phase C compiler will throw an error?
x = u - t;
y = x * v;
x = y + w;
y = t - z;
y = x * y;
The minimum number of total variables required to convert the above code segment to static
single assignment form is .GATE CSE Subjects
Browse all chapters by subject