Hanspeter Mössenböck,
"Coco/R - A Generator for Fast Compiler Front-Ends"
, 2-1990, Report, ETH Zurich
Original Titel:
Coco/R - A Generator for Fast Compiler Front-Ends
Sprache des Titels:
Englisch
Original Kurzfassung:
Formal compiler descriptions serve two purposes: (1) they can be used as a reference document which specifies the syntax and the semantics of a language, and (2) they provide a convenient notation from which efficient compilers can be generated. Compiler generating systems put emphasis on either the one or the other of these aspects. The system described in this report mainly concentrates on the second goal. We show that it is possible to generate compilers that are as efficient as hand-coded and carefully optimized production-quality compilers. Our system generates recursive descent parsers with a simple error-handling mechanism and scanners with a special buffering scheme. We used our system to generate an Oberon compiler that is even faster than the standard Oberon compiler used at ETH.
Sprache der Kurzfassung:
Englisch
Englische Kurzfassung:
Formal compiler descriptions serve two purposes: (1) they can be used as a reference document which specifies the syntax and the semantics of a language, and (2) they provide a convenient notation from which efficient compilers can be generated. Compiler generating systems put emphasis on either the one or the other of these aspects. The system described in this report mainly concentrates on the second goal. We show that it is possible to generate compilers that are as efficient as hand-coded and carefully optimized production-quality compilers. Our system generates recursive descent parsers with a simple error-handling mechanism and scanners with a special buffering scheme. We used our system to generate an Oberon compiler that is even faster than the standard Oberon compiler used at ETH.