No. of Lecture date S.No Topic lectures Intermediate forms of source 08-02-2012 1 1 Programs 2 abstract syntax tree 1 09-02-2012 polish notation and three 13-02-2012 3 1 address codes 4 Attributed grammars 1 15-02-2012 5 Syntax directed translation 1 16-02-2012 Conversion of popular Programming languages 18-02-2012 6 1 Constructs into Intermediate code forms Type checker 21-02-2012 7 1 22-02-2012 8 Review 1 8 Important Questions: Compare Inherited attributes and Synthesized attributes with an example. [Sup.Feb 2008, Set1] 2. Construct triples of an expression: a * - (b + c). [Sup.Feb 2008, Set1] 3. Let synthesized attribute, Val give the value of the binary number generated by S in the following grammar. For example, on 101.101, S.Val = 5.625. S ! L L |L • L ! LB|B B ! 0 |1 Write synthesized attribute values corresponding to each of the productions to determine the S.Val.[Sup.Feb 2008, Set2] 4. Generate the three-address code for the following ?C? program fragment: [16] while(a > b) {
S.No Topic No. of lectures Lecture date 1 Intermediate forms of source Programs 1 08-02-2012 2 abstract syntax tree 1 09-02-2012 3 polish notation and three address codes 1 13-02-2012 4 Attributed grammars 1 15-02-2012 5 Syntax directed translation 1 16-02-2012 6 Conversion of popular Programming languages Constructs into Intermediate code forms 1 18-02-2012 7 Type checker 1 21-02-2012 8 Review 1 22-02-2012 8 Important Questions: Compare Inherited attributes and Synthesized attributes with an example. [Sup.Feb 2008, Set1] 2. Construct triples of an expression: a * - (b + c). [Sup.Feb 2008, Set1] 3. Let synthesized attribute, Val give the value of the binary number generated by S in the following grammar. For example, on 101.101, S.Val = 5.625. S ! L • L |L L ! LB|B B ! 0 |1 Write synthesized attribute values corresponding to each of the productions to determine the S.Val.[Sup.Feb 2008, Set2] 4. Generate the three-address code for the following ?C? program fragment: [16] while(a > b) {
Compiler-Design.docx