Deriving efficient program transformations from rewrite rules
Author(s): Li, John M; Appel, Andrew W
DownloadTo refer to this page use:
http://arks.princeton.edu/ark:/88435/pr1r49g89b
Full metadata record
DC Field | Value | Language |
---|---|---|
dc.contributor.author | Li, John M | - |
dc.contributor.author | Appel, Andrew W | - |
dc.date.accessioned | 2023-12-19T16:47:05Z | - |
dc.date.available | 2023-12-19T16:47:05Z | - |
dc.date.issued | 2021-08 | en_US |
dc.identifier.citation | John M. Li and Andrew W. Appel. 2021. Deriving Efficient Program Transformations from Rewrite Rules. Proc. ACM Program. Lang. 5, ICFP, Article 74 (August 2021), 29 pages. https://doi.org/10.1145/3473579 | en_US |
dc.identifier.uri | http://arks.princeton.edu/ark:/88435/pr1r49g89b | - |
dc.description.abstract | An efficient optimizing compiler can perform many cascading rewrites in a single pass, using auxiliary data structures such as variable binding maps, delayed substitutions, and occurrence counts. Such optimizers often perform transformations according to relatively simple rewrite rules, but the subtle interactions between the data structures needed for efficiency make them tricky to write and trickier to prove correct. We present a system for semi-automatically deriving both an efficient program transformation and its correctness proof from a list of rewrite rules and specifications of the auxiliary data structures it requires. Dependent types ensure that the holes left behind by our system (for the user to fill in) are filled in correctly, allowing the user low-level control over the implementation without having to worry about getting it wrong. We implemented our system in Coq (though it could be implemented in other logics as well), and used it to write optimization passes that perform uncurrying, inlining, dead code elimination, and static evaluation of case expressions and record projections. The generated implementations are sometimes faster, and at most 40% slower, than hand-written counterparts on a small set of benchmarks; in some cases, they require significantly less code to write and prove correct. | en_US |
dc.language.iso | en_US | en_US |
dc.relation.ispartof | Proceedings of the ACM on Programming Languages | en_US |
dc.rights | Final published version. This is an open access article. | en_US |
dc.subject | compiler correctness, compiler optimization, metaprogramming, domain- specific languages, interactive theorem proving, shrink reduction | en_US |
dc.title | Deriving efficient program transformations from rewrite rules | en_US |
dc.type | Journal Article | en_US |
dc.identifier.doi | 10.1145/3473579 | - |
dc.identifier.eissn | 2475-1421 | - |
pu.type.symplectic | http://www.symplectic.co.uk/publications/atom-terms/1.0/conference-proceeding | en_US |
Files in This Item:
File | Description | Size | Format | |
---|---|---|---|---|
ProgramTransformationRewrite.pdf | 319.41 kB | Adobe PDF | View/Download |
Items in OAR@Princeton are protected by copyright, with all rights reserved, unless otherwise indicated.