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
Self doubt on SSA
AnilGoudar
asked
in
Compiler Design
Dec 28, 2017
410
views
1
vote
1
vote
Convert the following 3 address code to single Static Assignment.
a = b + c
d = d + a.
compiler-design
static-single-assignment
AnilGoudar
asked
in
Compiler Design
Dec 28, 2017
by
AnilGoudar
410
views
answer
comment
Follow
share this
share
3 Comments
by
Shivansh Gupta
commented
Dec 28, 2017
reply
Follow
share this
its already in SSA:
For valid SSA , variables on lhs must be distinct
3
3
by
AnilGoudar
commented
Dec 30, 2017
reply
Follow
share this
Can you please explain the second instruction.
Is accessing does not consider for new variable assignment?
0
0
by
Shivansh Gupta
commented
Dec 30, 2017
reply
Follow
share this
While converting from 3address to ssa, temporary variables are added when multiple assignments to a single variable are performed. What's wrong if same variable is read and written in same instruction ?
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
0
answers
1
Hemant Parihar
asked
in
Compiler Design
Jan 19, 2018
1,209
views
Temporary variable required in SSA
Consider the following code segment: c = b + a e = c - a f = c * e h = c + a i = h + f The minimum number of temporary variable required to convert the above code segment to static single assignment form is ________.
Hemant Parihar
asked
in
Compiler Design
Jan 19, 2018
by
Hemant Parihar
1.2k
views
compiler-design
static-single-assignment
1
vote
1
vote
8
answers
2
Anjan
asked
in
Compiler Design
Jan 9, 2018
1,864
views
#of variables in SSA
Consider the following code segment: c=b+a e=c-a f=c*e h=c+a i=h+f The minimum number of $\color{blue} {total}$ and $\color{blue} {temporary }$ variable required to convert the above code segment to static single assignment form are ________
Anjan
asked
in
Compiler Design
Jan 9, 2018
by
Anjan
1.9k
views
compiler-design
static-single-assignment
9
votes
9
votes
1
answer
3
papesh
asked
in
Compiler Design
Dec 17, 2016
1,971
views
Convert the given Three Address Code (TAC) into Static Single Assignment (SSA) ?
$x=5$ $x=x-3$ $\textbf{if } x<3$ $\quad y=x*2$ $\quad w=y$ $\textbf{else}$ $\quad y=x-3$ $w=x-y$ $z=x+y$ Give Equivalent SSA.
papesh
asked
in
Compiler Design
Dec 17, 2016
by
papesh
2.0k
views
compiler-design
static-single-assignment
0
votes
0
votes
1
answer
4
rexritz
asked
in
Compiler Design
Oct 22, 2023
391
views
Static single assignment self doubt
Consider the intermediate code given below: $a=c+d$ $b=a+e$ $b=f*g$ $h=b*a$ $T=u+h$ If the code is converted into a static single assignment form then the minimum number of total variables required is? The answer is given as 9 but according ... $T = u + h$ Can anyone help me exactly what mistake am I doing or my approach is correct and given answer is wrong?
rexritz
asked
in
Compiler Design
Oct 22, 2023
by
rexritz
391
views
compiler-design
static-single-assignment
intermediate-code
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
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy