Question: Q 6 . Narrate the process of constructing the basic blocks and flow graphs from the three - address code. Code Snippet: 0 T =
Q Narrate the process of constructing the basic blocks and flow graphs from the threeaddress code.
Code Snippet:
T
A
B
N
PRINT A
PRINT B
IF I N GOTO
GOTO
T A B
PRINT T
A B
B T
I I
GOTO
PRINT T
Consider the given code snippet.
aIdentify and list the leader statements
bConstruct the basic blocks
cDraw the flow graphs
dIdentify the live and next use information for each variable in any three basic blocks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
