Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged intermediate-code
5
votes
1
answer
31
UGC NET CSE | October 2020 | Part 2 | Question: 30
Which of the following is not an intermediate code form? Syntax trees Three address codes Quadrupules Post fix Notation
go_editor
asked
in
Compiler Design
Nov 20, 2020
by
go_editor
7.4k
views
ugcnetcse-oct2020-paper2
compiler-design
intermediate-code
1
vote
0
answers
32
Ullman (Compiler Design) Edition 2 Exercise 6.5 Question 2 (Page No. 399)
As in Ada, suppose that each expression must have a unique type, but that from a subexpression, by itself, all we can deduce is a set of possible types. That is, the application of function ... of the overall expression is determined, proceeds top-down to determine attribute $unique$ for the type of each subexpression.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
1.0k
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
33
Ullman (Compiler Design) Edition 2 Exercise 6.5 Question 1 (Page No. 398)
Assuming that function $widen$ in Fig. $6.26$ can handle any of the types in the hierarchy of Fig. $6.25(a)$, translate the expressions below. Assume that c and d are characters, $s$ and $t$ are short integers, $i$ and $j$ are integers, and $x$ is a float. $x=s+c$ $i=s+c$ $x=(s+c)\ast(t+d)$
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
678
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
34
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 9 (Page No. 386)
$A$ real array $A[i, j, k]$ has index $i$ ranging from $1$ to $4$, index $j$ ranging from $0$ to $4$, and index $k$ ranging from $5$ to $10$. Reals take $8$ bytes each. Suppose array $A$ is stored starting at byte $0$. Find the location of: $A[3,4,5]$ $A[1,2,7]$ $A[4,3,9]$ if $A$ is stored in column-major order.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
514
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
1
answer
35
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 8 (Page No. 386)
$A$ real array $A[i, j, k]$ has index $i$ ranging from $1$ to $4$, index $j$ ranging from $0$ to $4$, and index $k$ ranging from $5$ to $10$. Reals take $8$ bytes each. Suppose array $A$ is stored starting at byte $0$. Find the location of: $A[3,4,5]$ $A[1,2,7]$ $A[4,3,9]$
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
816
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
36
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 7 (Page No. 386)
An integer array $A[i, j]$ has index $i$ ranging from $1$ to $10$ and index $j$ ranging from $1$ to $20$. Integers take $4$ bytes each. Suppose array $A$ is stored starting at byte $0$. Find the location of: $A[4,5]$ $A[10,8]$ $A[3,17]$ if A is stored in column-major order.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
891
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
1
answer
37
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 6 (Page No. 386)
An integer array $A[i, j]$ has index $i$ ranging from $1$ to $10$ and index $j$ ranging from $1$ to $20$. Integers take $4$ bytes each. Suppose array $A$ is stored starting at byte $0$. Find the location of: $A[4,5]$ $A[10,8]$ $A[3,17]$
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
515
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
38
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 5 (Page No. 385 - 386)
Generalize formula $(6.7)$ to multidimensional arrays, and indicate what values can be stored in the symbol table and used to compute offsets. Consider the following cases: An array $A$ of two dimensions, in row-major form. The first ... $h_{j}$.The same as $(c)$ but with the array stored in column-major form.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
337
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
39
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 4 (Page No. 385)
Revise the translation of Fig. $6.22$ for array references of the Fortran style, that is, $id[E_{1}, E_{2},\cdot\cdot\cdot,E_{n}]$ for an $n-$dimensional array.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
350
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
40
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 3 (Page No. 385)
Use the translation of Fig. $6.22$ to translate the following assignments: $x=a[i]+b[j]$ $x=a[i][j]+b[i][j]$ $x=a[b[i][j]][c[[k]]$
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
672
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
41
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 2 (Page No. 384)
Add to the translation of Fig. $6.19$ rules for the following productions: $E\rightarrow E_{1}\ast E_{2}$ $E\rightarrow + E_{1}\:$(unary plus)
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
427
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
42
Ullman (Compiler Design) Edition 2 Exercise 6.4 Question 1 (Page No. 384)
Add to the translation of Fig. $6.19$ rules for the following productions: $E\rightarrow E_{1}\ast E_{2}$ $E\rightarrow + E_{1}\:$(unary plus)
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
566
views
ullman
compiler-design
intermediate-code
three-address-code
descriptive
0
votes
0
answers
43
Ullman (Compiler Design) Edition 2 Exercise 6.3 Question 2 (Page No. 378)
Extend the handling of field names in Fig. $6.18$ to classes and single-inheritance class hierarchies. Give an implementation of class $Enu$ that allows linked symbol tables, so that a subclass can ... inherited fields. Inherited fields must maintain the relative addresses they were assigned in the layout for the superclass.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
466
views
ullman
compiler-design
three-address-code
intermediate-code
descriptive
0
votes
0
answers
44
Ullman (Compiler Design) Edition 2 Exercise 6.3 Question 1 (Page No. 378)
Determine the types and relative addresses for the identifiers in the following sequence of declarations: float x; record { float x; float y; } p; record { int tag; float x; float y; } q;
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
1.2k
views
ullman
compiler-design
three-address-code
intermediate-code
descriptive
0
votes
1
answer
45
Ullman (Compiler Design) Edition 2 Exercise 6.2 Question 3 (Page No. 370)
Show how to transform a three-address code sequence into one in which each defined variable gets a unique variable name.
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
1.6k
views
ullman
compiler-design
three-address-code
intermediate-code
descriptive
1
vote
1
answer
46
Ullman (Compiler Design) Edition 2 Exercise 6.2 Question 2 (Page No. 370)
Translate the following arithmetic expression into: $a=b[i]+c[j]$ $a[i]=b\ast c-b\ast d$ $x=f(y+1)+2$ $x=\ast p + \&y$ A Syntax tree Quadruples Triples Indirect triples
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
7.8k
views
ullman
compiler-design
three-address-code
intermediate-code
descriptive
0
votes
1
answer
47
Ullman (Compiler Design) Edition 2 Exercise 6.2 Question 1 (Page No. 370)
Translate the arithmetic expression $a + -(b + c)$ into: A syntax tree. Quadruples. Triples. Indirect triples
Lakshman Bhaiya
asked
in
Compiler Design
Sep 7, 2019
by
Lakshman Bhaiya
10.5k
views
ullman
compiler-design
three-address-code
intermediate-code
descriptive
1
vote
1
answer
48
UGC NET CSE | June 2019 | Part 2 | Question: 72
On translating the expression given below into quadruple representation, how many operations are required? $(i\ast j)+(e+f)\ast(a\ast b+c)$ $5$ $6$ $3$ $7$
Arjun
asked
in
Compiler Design
Jul 2, 2019
by
Arjun
4.8k
views
ugcnetcse-june2019-paper2
intermediate-code
quadruple-representation
0
votes
0
answers
49
Ullman(2e) Exercise-8.3.2 page no-524 Code Generation
Generate code for the following three-address statements assuming stack allocation where register SP points to the top of the stack x = 1 x=a x = a + 1 x = a+b The two statements x = b * c y = a + x
aditi19
asked
in
Compiler Design
Apr 1, 2019
by
aditi19
965
views
compiler-design
intermediate-code
target-code-generation
stack
pointers
0
votes
1
answer
50
static single assignment
# of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R).
minal
asked
in
Compiler Design
Jan 22, 2019
by
minal
887
views
compiler-design
intermediate-code
three-address-code
static-single-assignment
numerical-answers
0
votes
2
answers
51
Intermediate code representation
Answer is 6,6 Can anybody explain how?
bts1jimin
asked
in
Compiler Design
Jan 12, 2019
by
bts1jimin
533
views
compiler-design
intermediate-code
test-series
1
vote
1
answer
52
MadeEasy Test Series: Complier Design - Intermediate Code
someone please share detailed rules for this along with solution- would be of great help. and we usually dont take start and end state- arent they extra here? coz count comes different
Markzuck
asked
in
Compiler Design
Jan 8, 2019
by
Markzuck
740
views
compiler-design
made-easy-test-series
intermediate-code
1
vote
0
answers
53
UPPCL AE 2018:39
Match all items in Group $1$ with correct options from those given in Group $2.$ ... $\text{P-1, Q-2, R-3, S-4}$ $\text{P-2, Q-3, R-4, S-1}$
Lakshman Bhaiya
asked
in
Compiler Design
Jan 5, 2019
by
Lakshman Bhaiya
239
views
uppcl2018
compiler-design
intermediate-code
0
votes
1
answer
54
GATE Overflow | Mock GATE | Test 1 | Question: 32
A sequential search operation is performed on an array $A$ for the key value of $'x'$ (ignore quotes). Consider the following piece of assembly language code that uses back patching to perform the sequential search. i=0; P: if (i<A.length) goto ____; Q: ... values in the blanks provided ordered from top to bottom? R T U P R U T P P U T R P T U R
Ruturaj Mohanty
asked
in
Algorithms
Dec 27, 2018
by
Ruturaj Mohanty
605
views
go-mockgate-1
algorithms
searching
compiler-design
intermediate-code
code-optimization
0
votes
0
answers
55
self_doubt
what will be the three address code for x=A[i][j] Given A[M][N] and w is word size; t1=i*N; t2=t1+j; t3=t2*w; t4=base address of array A[M][N] t5=t4+t3; x=t5; My doubt here: Is there any need of t4 variable for storing the base address of arrary or we can directly do it as t4=A[t3]; x=t4;
Shivam Kasat
asked
in
Compiler Design
Dec 22, 2018
by
Shivam Kasat
450
views
compiler-design
intermediate-code
three-address-code
array
0
votes
1
answer
56
NIELIT 2018-76
Identify the correct nodes and edges in the given intermediate code $i=1$ $t1=5*i$ $t2=4*t1$ $t3=t2$ $a[t3]=0$ $i=i+1$ if $i<15$ goto(2) $33$ $44$ $43$ $34$
Arjun
asked
in
Compiler Design
Dec 7, 2018
by
Arjun
4.3k
views
nielit-2018
compiler-design
intermediate-code
1
vote
0
answers
57
Triple Representation of x[i]=y
Given Answer is A
Aakash_
asked
in
Compiler Design
Nov 30, 2018
by
Aakash_
1.5k
views
compiler-design
intermediate-code
0
votes
2
answers
58
MadeEasy Test Series: Compiler Design - Intermediate Code
a x b x c + d - a + e x f - g + h order of precedence : x>+>- ; with x is left associative and +, - as right. Min number of variables required in TAC? Should'nt the expression be expressed as : ((a x b) x c) + d - a + (e x f) - g + h (((a x b) x c) + (d - (a + (e x f)) - (g + h)))
manisha11
asked
in
Compiler Design
Nov 18, 2018
by
manisha11
961
views
made-easy-test-series
compiler-design
intermediate-code
0
votes
1
answer
59
compiler design
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers. eleborate this ??
Gurdeep Saini
asked
in
Compiler Design
Nov 15, 2018
by
Gurdeep Saini
529
views
compiler-design
intermediate-code
Page:
« prev
1
2
3
4
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(24)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(682)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
243k
comments
79.7k
users
Recent questions tagged intermediate-code
Recent Blog Comments
Hlo I'm Rupesh I got AIR 3485 in gate CS and AIR...
@Ajay Sasank here is the direct link...
Thank you for the post didi My GATE 2023 & 2024...
I Hope it helps 😊
Today's best post I seen thank you for motivation