Article ID Journal Published Year Pages File Type
421567 Electronic Notes in Theoretical Computer Science 2012 12 Pages PDF
Abstract

The analysis of executable code requires the reconstruction of instructions from a sequence of bytes (or words) and a specification of their semantics. Most front-ends addressing this problem only support a single architecture, are bound to a specific programming language, or are hard to maintain. In this work, we present a domain specific language (DSL) called GDSL (Generic Decoder Specification Language) for specifying maintainable instruction decoders and the translation of instructions to a semantics. We motivate its design by illustrating its use for the Intel x86 platform. A compiler is presented that generates C code that rivals hand-crafted decoder implementations.

Related Topics
Physical Sciences and Engineering Computer Science Computational Theory and Mathematics