A Formally Verified SSA-based Middle-end - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2012

A Formally Verified SSA-based Middle-end

Abstract

CompCert is a formally verified compiler that generates compact and efficient PowerPC, ARM and x86 code for a large and realistic subset of the C language. However, CompCert foregoes using Static Single Assignment (SSA), an intermediate representation that allows for writing simpler and faster optimizers, and is used by many compilers. In fact, it has remained an open problem to verify formally a SSA-based compiler middle-end. We report on a formally verified, SSA-based, middle-end for CompCert. Our middle-end performs conversion from CompCert intermediate form to SSA form, optimization of SSA programs, including Global Value Numbering, and transforming out of SSA to intermediate form. In addition to provide the first formally verified SSA-based middle-end, we address two problems raised by Leroy [13]: giving a simple and intuitive formal semantics to SSA, and leveraging the global properties of SSA to reason locally about program optimizations.

Dates and versions

hal-01110783 , version 1 (28-01-2015)

Identifiers

Cite

Gilles Barthe, Delphine Demange, David Pichardie. A Formally Verified SSA-based Middle-end: Static Single Assignment meets CompCert. 21th European Symposium on Programming, ESOP 2012, Mar 2012, Tallin, Estonia. pp.47-66, ⟨10.1007/978-3-642-28869-2_3⟩. ⟨hal-01110783⟩
257 View
0 Download

Altmetric

Share

Gmail Mastodon Facebook X LinkedIn More