November 25, 2011

COMPILER DESIGN JNTU previous years question papers


COMPILER DESIGN JNTU previous years question papers

Time: 3 hours Max Marks: 80

Answer any FIVE Questions

All Questions carry equal marks

1. (a) What is LEX? Explain, in detail, different sections of LEX program.
(b) Write regular expressions for the following patterns. Use auxiliary definitions wherever convenient.
i. the set of words having a,e,i,o,u appearing in that order, although not necessarily consecutively.
ii. comments in C. [8+8]

2. (a) What are the difficulties in top down parsing? Explain in detail.
(b) Consider the following grammar
S ! (L) |a
L ! L, S |S
Construct leftmost derivations and parse trees for the following sentences:
i. (a,(a,a))
ii. (a,((a,a),(a,a))). [8+8]
3. (a) Explain canonical LR parsing.

(b) Explain briefly, precedence functions. construct the precedence graph using the following prededence table. [8+8]
+ * ( ) id $
f 2 3 0 4 4 0
g 1 3 5 0 5 0

4. (a) Write a S - attributed grammar to connect the fopllowing grammar with prefix rotator
L ! E
E ! E+T | E-T | T
T ! T*F | T/F | F
F ! P " F | P
P ! (E)
P ! id.
(b) Construct triples of an expression: a -(b + c). [8+8]

5. (a) What is heap storage allocation? Explain in detail.
(b) Explain about implicit and explicit storage requests. [8+8]

6. (a) Explain in detail the Optimization technique “strength reduction”.
(b) What is a DAG. Explain its applications. [8+8]

7. (a) What is an Induction variable? Explain with an example.
(b) Discuss how induction variables can be detected and how transformation can be applied. [8+8]

8. Generate code for the following ’C’ statements
(a) x = f(a) + f(a) + f(a)
(b) x = f(a) / g(b,c)
(c) x = f(f(a))
(d) x = ++f(a)

FEEL USEFUL PLEASE GIVE +1

0 comments :

Post a Comment

Get Syllabus in your Mail

Labels

Accenture Admission Notice - 2010 Admission Notification Anna University Anna University Chennai Anna University Question Papers Anna University Trichy Apparel Technology and Management Aptitude Questions Arts and Science Colleges Biomedical Engineering C and CPP Ebooks Calicut University CBSE Question papers Civil Engineering Civil Service Exams Colleges in India Colleges Result Computer Science Engineering Core Jobs CS R2008 CSE CSIR NET EBooks Download ECE EEE EIE Electives Electrical and Electronics Engineering Electronics and communication Electronics and Instrumentation Engineering Engineering Engineering Colleges in Maharashtra Engineering Colleges in TamilNadu Engineering Admissions Engineering Colleges Engineering Colleges in Karnataka Engineering Jobs Engineering Syllabus Entrance Exam Dates Entrance Exam Results Entrance Examination Exam Time Table Experiencer First Year Syllabus Freshers Full Time Jobs Government jobs in india Hardware and Networking Jobs Hotel Management and Catering Technology IGNOU Information Technology INTEVIEW QUESTIONS IT Jobs JNTU Question Papers Jobs in Bangalore Jobs in Chennai Jobs in Coimbatore Jobs in Delhi Jobs in Hyderabad Jobs in India Jobs in Kerala Jobs in Noida Jobs in Tamilnadu Jobs in TATA Karnataka Educations Lab Manuals Mechanical Engineering Medical Colleges Placement Papers Plus 2 Preparation for exams Private Jobs in India Question Papers Question Papers Download Results Announcement Semester 1 Semester 2 Semester 3 Semester 4 Semester 5 Semester 6 Semester 7 Semester 8 Syllabus Syllabus Download Tamil Movie TCS Placement Papers Teaching Jobs TECH MAHINDRA Textile Technology Top colleges University Results UPSC VICEVESVARAYA TECHNOLOGICAL UNIVERSITY waec Walk-in Interview Web Designers

Followers

Archive

Anna university Engineering Syllabus

Earn Money From Online

Government jobs in india

Admission Notification

Total Pageviews

 

Privacy Policy
http://topengineeringcollegesintamilnadu.blogspot.com use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.