Compiling Natural Semantics
Author | : Mikael Pettersson |
Publisher | : Springer |
Total Pages | : 252 |
Release | : 2005-11-20 |
ISBN-10 | : 9783540488231 |
ISBN-13 | : 3540488235 |
Rating | : 4/5 (31 Downloads) |
Download or read book Compiling Natural Semantics written by Mikael Pettersson and published by Springer. This book was released on 2005-11-20 with total page 252 pages. Available in PDF, EPUB and Kindle. Book excerpt: Natural Semantics has become a popular tool among programming language researchers for specifying many aspects of programming languages. However, due to the lack of practical tools for implementation, the natural semantics formalism has so far largely been limited to theoretical applications. This book introduces the rational meta-language RML as a practical language for natural semantics specifications. The main part of the work is devoted to the problem of compiling natural semantics, actually RML, into highly efficient code. For this purpose, an effective compilation strategy for RML is developed and implemented in the rml2c compiler. This compiler ultimately produces low-level C code. Benchmarking results show that rml2c-produced code is much faster than code resulting from compilers based on alternative implementation approaches.