next up previous
Next: Level 0 Up: Projects on gcc Intermediate Previous: Our Choice Levels of


To Do for Each Level of C Source Program

Design a grammar and the corresponding parser using yacc/bison for the intermediate representation generated by gcc for each level of C source language programs. This parser has to be augmented further with actions to interpret the IR. For the Machine Description, an interpreter is not possible and we will identity some useful activity to be done with the description. An additional possibility in each case is a syntax directed editor which reads in the IR and allows the user to change it subject to following the syntax. This will require separating the organisational contents (eg. pointer the next node) from the semantic contents (eg. the data contained in a node). Some preliminary semantic checks may also be possible.

We omit case analysis constructs, explicit type coercion, loop breaks and continues, unrestricted jump, variable argument lists, preprocessing, data structuring mechanisms (structs and unions) and pointers.


next up previous
Next: Level 0 Up: Projects on gcc Intermediate Previous: Our Choice Levels of
2006-01-08