Compilation Methods SS 2009 - Slide 313
Objectives:
Special technique for translation of conditions
In the lecture:
- Explain the transformation of conditions.
- Use the example of C-3.14
- Use 2 inherited attributes for the target label and the case when to branch.
- Discuss whether the technique may be applied for C, Pascal, and Ada.
Suggested reading:
Kastens / Übersetzerbau, Section 7.3.3
Questions:
- Why does the transformation of conditions reduce code size?
- How is the technique described by an attribute grammar?
- Why is no instruction generated for the operator not ?
- Discuss whether the technique may or must be applied for C, Pascal, and Ada.
©2009 Prof. Dr. Uwe Kastens
Generiert mit Camelot | Probleme mit Camelot? | Geändert am: 30.03.2009