首页 | 官方网站   微博 | 高级检索  
     


A Domain-Specific Language for Generating Dataflow Analyzers
Authors:Jia Zeng  Chuck Mitchell  Stephen A Edwards  
Affiliation:aDepartment of Computer Science, Columbia University, New York;bMicrosoft Corporation, Redmond, Washington
Abstract:Dataflow analysis is a well-understood and very powerful technique for analyzing programs as part of the compilation process. Virtually all compilers use some sort of dataflow analysis as part of their optimization phase. However, despite being well-understood theoretically, such analyses are often difficult to code, making it difficult to quickly experiment with variants.To address this, we developed a domain-specific language, Analyzer Generator (AG), that synthesizes dataflow analysis phases for Microsoft's Phoenix compiler framework. AG hides the fussy details needed to make analyses modular, yet generates code that is as efficient as the hand-coded equivalent. One key construct we introduce allows IR object classes to be extended without recompiling.Experimental results on three analyses show that AG code can be one-tenth the size of the equivalent handwritten C++ code with no loss of performance. It is our hope that AG will make developing new dataflow analyses much easier.
Keywords:Domain-specific language  Dataflow analysis  dynamic class extension  compiler  Phoenix compiler framework
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号