On Compiling Rewriting Logic Language Definitions into Competitive Interpreters
Revision as of 21:25, 20 January 2011 by Tserban2
- On Compiling Rewriting Logic Language Definitions into Competitive Interpreters
- Michael Ilseman, Chucky Ellison and Grigore Rosu
- Technical Report http://hdl.handle.net/2142/17444, December 2010
- Abstract. This paper describes a completely automated method for generating efficient and competitive interpreters from formal semantics expressed in Rewriting Logic. The semantics are compiled into OCaml code, which then acts as the interpreter for the language being defined. This automatic translation is tested on the semantics of an imperative as well as a functional language, and these generated interpreters are then benchmarked across a number of programs. In all cases the compiled interpreter is faster than directly executing the definition in a Rewriting system with improvements of several orders of magnitude.