Question: KINDLY ANSWER THEM ALL CORRECTLY URGENTLY REQUIRED! Compiler Construction Class: BS(CS)-5 Date: JAN, 2022 Time Allowed:45 minutes Max Marks : 2.5 Q1: Analyzing the CFGS

 KINDLY ANSWER THEM ALL CORRECTLY URGENTLY REQUIRED! Compiler Construction Class: BS(CS)-5

KINDLY ANSWER THEM ALL CORRECTLY URGENTLY REQUIRED!

Compiler Construction Class: BS(CS)-5 Date: JAN, 2022 Time Allowed:45 minutes Max Marks : 2.5 Q1: Analyzing the CFGS (G1, G2&G3), answer the following questions. (CLO4, PLO4,C4) Answer Q Nol 1 2 3 Synthesized Yes Der Synthesized AAJIA, I1+1 11 Retype=int & To type-int GI: S+S+S S SS G2: A+ALIJA >I+I1 G3: Sif then S else 4 5 6 7 8 9 10 R=E+T Roval te 1. Which kind of attribute is required for GI 2. Can we design AST for the G1 3. "I will have synthesized or inherited attribute? Refer G2 4. To compute A[2] suggest semantic rules for II+I 5. What semantic rule will be required for S+S*S 6. Give stack machine code for SS+S 7. Give IGC for G3 8. What will be three address code for S7 9. Give THREE address code for S+S*S 10. What kind of attributes are required for C ?refer G3 Eslype= Totum then R. Rount TE R-Type = Compiler Construction Class: BS(CS)-5 Date: JAN, 2022 Time Allowed:45 minutes Max Marks : 2.5 Q1: Analyzing the CFGS (G1, G2&G3), answer the following questions. (CLO4, PLO4,C4) Answer Q Nol 1 2 3 Synthesized Yes Der Synthesized AAJIA, I1+1 11 Retype=int & To type-int GI: S+S+S S SS G2: A+ALIJA >I+I1 G3: Sif then S else 4 5 6 7 8 9 10 R=E+T Roval te 1. Which kind of attribute is required for GI 2. Can we design AST for the G1 3. "I will have synthesized or inherited attribute? Refer G2 4. To compute A[2] suggest semantic rules for II+I 5. What semantic rule will be required for S+S*S 6. Give stack machine code for SS+S 7. Give IGC for G3 8. What will be three address code for S7 9. Give THREE address code for S+S*S 10. What kind of attributes are required for C ?refer G3 Eslype= Totum then R. Rount TE R-Type =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!