FACULTY OF INFORMATICS

Code No. 2162 / O

B.E. 3/4 (IT) II-Semester (Old) Examination, May 2013

Time : 3 Hours

Subject : Compiler Construction (Elective – I)

Max. Marks: 75

Note: Answer all questions of Part - A and answer any five questions from Part-B. PART – A (25 Marks) 1. List the major data structures used in a compiler. 2. What is the purpose of a Literal table in a compiler? 3. Define left recursion removal, remove left recursion from. exp  exp + term / exp – term / term 4. Write LR(0) items for the following grammar E E + n / n 5. Define shift – reduce conflict and Reduce – reduce conflict. 6. Writ the Attribute grammar from number  number / digit digit  O / I 7. What is a basic block? How is it recognized? 8. What is meant by dead code? 9. What is Back-patching? 10. Write the functions of bootstrap loader.

(2) (2) (3) (3) (3) (3) (3) (2) (2) (2)

PART – B (5x10=50 Marks) 11. Convert the following Regular expression into an NFA (10 + 11) 0*1

(10)

12. Compute the FIRST and FOLLOW sets for the following grammar Statement  if –stmt / other if –stmt  if (exp) statement else-part else-part  else statement /  exp  O / I

(10)

13. Construct a DFA of LR (1) items for the following grammar S  id / V : = E V  id EV/n

(10)

14.(a) Explain various parameters passing mechanisms. (b) Explain stack based runtime environment.

(5) (5)

15.(a) Explain code generation for control statements and Logic Expressions. (b) Write three Address code and P-code for the following Function Definition : int f (int x, int y) { return x + y + 1} Function call : f(2 + 3, 4)

(5) (5)

16.(a) Discuss about code optimization techniques. (b) Explain symbol table organization.

(5) (5)

17. Write short notes on the following: (a) Recursive Descent Parsing (b) Error Recovery in Bottom up parsers (c) Generating codes from DAGs

(3) (3) (4)

*****

Vasavai CE BE IT 3rd Year May 2013 Compiler Construction (Old).pdf

Write LR(0) items for the following grammar (3). E E + n / n. 5. Define shift – reduce conflict and Reduce – reduce conflict. (3). 6. Writ the Attribute grammar from ...

97KB Sizes 0 Downloads 175 Views

Recommend Documents

Vasavai CE B.E IT 3rd Year Apr 2013 Compiler Construction.pdf ...
b) Conflicts in shift-reduce parsing. (3). c) Rules for type checking. (3) ****. Page 1 of 1. Vasavai CE B.E IT 3rd Year Apr 2013 Compiler Construction.pdf. Vasavai ...

Vasavai CE B.E IT 3rd Year May 2013 Database Management ...
Page 1. Vasavai CE B.E IT 3rd Year May 2013 Database Management Systems.pdf. Vasavai CE B.E IT 3rd Year May 2013 Database Management Systems.pdf.

Vasavai CE B.E IT 3rd Year May 2013 Advanced Computer ...
Describe compilation phases in parallel code generation. 15. Describe ... Vasavai CE B.E IT 3rd Year May 2013 Advanced Computer Architecture.pdf. Vasavai ...

Vasavai CE B.E ECE 3rd Year May 2013 Microprocessors and ...
Compare the features of MOTOROLA & ZILOG CPU's. 3. Give the meaning of each of the following 8086 instructions. a) Test BL, AL. b) Out DX, AL ... b) Debugging tools. c) Numeric data processor. ******. Page 2 of 2. Main menu. Displaying Vasavai CE B.E

Vasavai CE BE CSE 3rd Year May 2013 Operating Systems(New).pdf
What is a resource allocation graph? What is its use? Give an example. 2. 5. What is access matrix? Give an example. 2. 6. What is RAID? Give its structure. 3. 7.

Vasavai CE B.E IT 3rd Year May 2013 Signals and Systems.pdf ...
(c) Properties of Laplace transform (3) *****. Page 1 of 1. Vasavai CE B.E IT 3rd Year May 2013 Signals and Systems.pdf. Vasavai CE B.E IT 3rd Year May 2013 ...

Vasavai CE B.E IT 3rd Year May 2013 Data Warehousing and Data ...
a) Spatial data mining b) Text mining. ******. Page 1 of 1. Vasavai CE B.E IT 3rd Year May 2013 Data Warehousing and Data Mining (Elective – I).pdf. Vasavai ...

Vasavai CE B.E IT 3rd Year May 2013 Real Time Systems(Old).pdf ...
Distinguish between 'Pessimistic Concurrency Control' and. 'Optimistic Concurrency Control'. (3). 8. List factors that make it difficult to predict the response times ...

Vasavai CE B.E IT 3rd Year May 2013 Object Oriented System ...
Vasavai CE B.E IT 3rd Year May 2013 Object Oriented System Development.pdf. Vasavai CE B.E IT 3rd Year May 2013 Object Oriented System Development.

Vasavai CE B.E IT 3rd Year May 2013 Computer Networks (New ...
Page 1 of 1. Vasavai CE B.E IT 3rd Year May 2013 Computer Networks (New).pdf. Vasavai CE B.E IT 3rd Year May 2013 Computer Networks (New).pdf. Open.

Vasavai CE B.E IT 3rd Year May 2013 Software Testing.pdf ...
... of load runner, win runner 5+5. b) State based or graph based testing strategy. ******. Page 1 of 1. Vasavai CE B.E IT 3rd Year May 2013 Software Testing.pdf.

Vasavai CE B.E IT 3rd Year May 2013 Digital Instrumentation and ...
Vasavai CE B.E IT 3rd Year May 2013 Digital Instrumentation and Control.pdf. Vasavai CE B.E IT 3rd Year May 2013 Digital Instrumentation and Control.pdf.

Vasavai CE BE IT 4th Year May 2013 Software Project Management ...
Page 1 of 1. Vasavai CE B.E IT 4th Year May 2013 Software Project Management.pdf. Vasavai CE B.E IT 4th Year May 2013 Software Project Management.pdf.

Vasavai CE B.E CSE 4th Year May 2013 Soft Computing.pdf ...
Page 1 of 1. Vasavai CE B.E CSE 4th Year May 2013 Soft Computing.pdf. Vasavai CE B.E CSE 4th Year May 2013 Soft Computing.pdf. Open. Extract. Open with.

Vasavai CE B.E ME 2nd Year May 2013 Thermodynamics.pdf ...
Vasavai CE B.E ME 2nd Year May 2013 Thermodynamics.pdf. Vasavai CE B.E ME 2nd Year May 2013 Thermodynamics.pdf. Open. Extract. Open with. Sign In.

Vasavai CE B.E CSE 2nd Year May 2013 Data Communications.pdf ...
(b) Explain any two collision free LAN protocols. 17. Write short notes on: a) X.25. b) Error control in data link layer. c) Bluetooth architecture. ****. Page 1 of 1. Vasavai CE B.E CSE 2nd Year May 2013 Data Communications.pdf. Vasavai CE B.E CSE 2

Vasavai CE B.E CSE 4th Year May 2013 Distributed Systems.pdf ...
Page 1 of 1. Vasavai CE B.E CSE 4th Year May 2013 Distributed Systems.pdf. Vasavai CE B.E CSE 4th Year May 2013 Distributed Systems.pdf. Open. Extract.

Vasavai CE B.E Civil 4th Year May 2013 Structural Engineering ...
Vasavai CE B.E Civil 4th Year May 2013 Structural Engineering Design and Detailing – II.pdf. Vasavai CE B.E Civil 4th Year May 2013 Structural Engineering ...

Vasavai CE B.E Inst 4th Year May 2013 Optoelectronic ...
Vasavai CE B.E Inst 4th Year May 2013 Optoelectronic Instrumentation.pdf. Vasavai CE B.E Inst 4th Year May 2013 Optoelectronic Instrumentation.pdf. Open.

Vasavai CE BE Common 1st Year Jan 2013 Engineering Chemistry.pdf
(ii) Butyl rubber (6). 15.(a) What are chemical fuels? Give their classification with examples. (4). (b) Describe the analysis of coal by proximate analysis method. What is its significance? (6). 16.(a) Describe the construction and working of lead-a

Vasavai CE BE ME 3rd Year Dec 2012 Applied Thermodynamics.pdf
Page 1 of 2. Code No. 2342 / N. FACULTY OF ENGINEERING. B.E. 3/4 (Mechanical) I – Semester (New) (Main) Examination, Nov. / Dec. 2012. Subject : Applied Thermodynamics. Time : 3 hours Max. Marks : 75. Note: Answer all questions from Part–A and an

Vasavai CE B.E CSE 3rd Year Apr 2013 Process Control.pdf ...
Page 2 of 2. Vasavai CE B.E CSE 3rd Year Apr 2013 Process Control.pdf. Vasavai CE B.E CSE 3rd Year Apr 2013 Process Control.pdf. Open. Extract. Open with.

Vasavai CE BE ME 3rd Year Nov 2012 Applied Thermodynamics.pdf
Define (i) bsfc and (ii) isfc as applied to an Internal Combustion Engine. ... Explain the basic principle of evaporative cooling that is used in cooling towers in.

Vasavai CE B.E EE 2nd Year May 2013 Environmental Studies.pdf ...
Page 1 of 1. Code No. 2023. FACULTY OF ENGINEERING & INFORMATICS. B.E. 2/4 (EE/Inst./MP/IT) I – Semester (Suppl) Examination, May 2013. Subject : Environmental Studies. Time : 3 hours Max. Marks : 75. Note: Answer all questions from Part-A. Answer