UC BERKELEY
EECS technical reports
TECHNICAL REPORTS


EECS-2008-186.pdf
Conditions of Use

Archive Home Page

Type-Based Verification of Assembly Language

Authors:
Chang, Bor-Yuh Evan
Technical Report Identifier: EECS-2008-186
December 29, 2008
EECS-2008-186.pdf

Abstract: It is a common belief that certifying compilation, which typically verifies the well-typedness of compiler output, can be an effective mechanism for compiler debugging, in addition to ensuring basic safety properties. Bytecode verification is a fairly simple example of this approach and derives its simplicity in part by compiling to carefully crafted high-level bytecodes. In this paper, we seek to push this method to native assembly code, while maintaining much of the simplicity of bytecode verification. Furthermore, we wish to provide experimental confirmation that such a tool can be accessible and effective for compiler debugging. To achieve these goals, we present a type-based data-flow analysis or abstract interpretation for assembly code compiled from a Java-like language, and evaluate its bug-finding efficacy on a large set of student compilers.