search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.

Recent questions tagged intermediate-code

0 votes
1 answer 20 views
Errors violating the condition ‘any variable must be declared before its use’ are detected during semantic analysis. Why cannot it come under syntax analysis? Does declaration not fall under Syntax?
asked Jul 14 in Compiler Design GreyMatter 7 points 20 views
0 votes
3 answers 1.2K views
In the context of compilers, which of the following is/are $\text{NOT}$ an intermediate representation of the source program? Three address code Abstract Syntax Tree $\text{(AST)}$ Control Flow Graph $\text{(CFG)}$ Symbol table
asked Feb 18 in Compiler Design Arjun 1.5k points 1.2K views
0 votes
0 answers 13 views
The least number of temporary variables required to create a three-address code in static single assignment form for the expression $q + r / 3 + s - t * 5 + u * v/w$ is__________________.
asked Apr 18, 2020 in Compiler Design admin 573 points 13 views
0 votes
0 answers 14 views
For a C program accessing $\mathbf{X[i] [j] [k]}$, the following intermediate code is generated by a compiler. Assume that the size of an integer is $32$ bits and the size of a character is $8$ bits. t0 = i ∗ 1024 t1 = j ∗ 32 t2 = k ∗ 4 t3 = t1 + t0 t4 = t3 + t2 t5 = X[t4] ... $\mathbf{X}$ is declared as "char $\mathbf{X[4] [32] [8]}$ . $\mathbf{X}$ is declared as "char $\mathbf{X[32] [16] [2]}$ .
asked Apr 18, 2020 in Compiler Design admin 573 points 14 views
0 votes
0 answers 15 views
Generation of intermediate code based on an abstract machine model is useful in compilers because it makes implementation of lexical analysis and syntax analysis easier syntax-directed translations can be written for intermediate code generation it enhances the portability of ... end of the compiler it is not possible to generate code for real machines directly from high level language programs
asked Apr 18, 2020 in Compiler Design admin 573 points 15 views
0 votes
0 answers 17 views
For computer based on three-address instruction formats, each address field can be used to specify which of the following: (S1) A memory operand (S2) A processor register (S3) An implied accumulator register Either $S1$ or $S2$ Either $S2$ or $S3$ Only $S2$ and $S3$ All of $S1$, $S2$ and $S3$
asked Apr 18, 2020 in Compiler Design admin 573 points 17 views
0 votes
0 answers 18 views
Consider the following intermediate program in three address code p = a - b q = p * c p = u * v q = p + q Which one of the following corresponds to a static single assignment form of the above code? p1 = a - b q1 = p1 * c p1 = u * v q1 = p1 + q1 p3 = a - b q4 = p3 * c p4 = u * v q5 = p4 + q4 p1 = a - b q1 = p2 * c p3 = u * v q2 = p4 + q3 p1 = a - b q1 = p * c p2 = u * v q2 = p + q
asked Apr 18, 2020 in Compiler Design admin 573 points 18 views
0 votes
0 answers 17 views
One of the purposes of using intermediate code in compilers is to make parsing and semantic analysis simpler. improve error recovery and error reporting. increase the chances of reusing the machine-independent code optimizer in other compilers. improve the register allocation.
asked Apr 18, 2020 in Compiler Design admin 573 points 17 views
0 votes
0 answers 16 views
Write $3$ address intermediate code (quadruples) for the following boolean expression in the sequence as it would be generated by a compiler. Partial evaluation of boolean expressions is not permitted. Assume the usual rules of precedence of the operators.$(a+b) > (c+d) \text{ or } a > c \text{ and }b < d$
asked Apr 18, 2020 in Compiler Design admin 573 points 16 views
0 votes
0 answers 11 views
Is the following code template for the if-then-else statement correct? if not, correct it. if expression then statement $1$ else statement $2$ Template: Code for expression (*result in $E, E > O$ indicates true *) Branch on $E > O$ to $L1$ Code for statement $1$ $L1$: Code for statement $2$
asked Apr 18, 2020 in Compiler Design admin 573 points 11 views
0 votes
0 answers 12 views
Construct a DAG for the following set of quadruples: E:=A+B F:=E-C G:=F*D H:=A+B I:=I-C J:=I+G
asked Apr 18, 2020 in Compiler Design admin 573 points 12 views
0 votes
0 answers 9 views
Provide short answers to the following questions: Compute the postfix equivalent of the following infix arithmetic expression $a + b * c + d * e ↑ f$ where $↑$ represents exponentiation. Assume normal operator precedences.
asked Apr 18, 2020 in Compiler Design admin 573 points 9 views
0 votes
0 answers 26 views
Page no. 363 2nd edition Ulman In three-address code, there is at most one operator on the irght side ofan instruction; that is, no built-up arithmetic expressions are permitted. Can someone please explain the meaning of the highlighted line?
asked Sep 4, 2019 in Compiler Design `JEET 187 points 26 views
0 votes
1 answer 107 views
The least number of total variables needed to create a three address code in static single assignment form for the following code segment is: q=3 r=10 s=q+r t=2*r+s t=q u=q+r v=q+t t=3+x
asked Aug 19, 2019 in Compiler Design Sambhrant Maurya 493 points 107 views
To see more, click for the full list of questions or popular tags.
...