首页> 外文会议> >Component design of retargetable program analysis tools that reuse intermediate representations
【24h】

Component design of retargetable program analysis tools that reuse intermediate representations

机译:重用中间表示的可重定位程序分析工具的组件设计

获取原文

摘要

Interactive program analysis tools are often tailored to one particular representation of programs, making adaptation to a new language costly. One way to ease adaptability is to introduce an intermediate abstraction---an adaptation layer---between an existing language representation and the program analysis tool. This adaptation layer translates the tool's queries into queries on the particular representation.

Our experiments with this approach on the StarTool program analysis tool resulted in low-cost retargets for C, Tcl/Tk, and Ada. Required adjustments to the approach, however, led to insights for improving a client's retargetability. First, retargeting was eased by having our tool import a tool-centric (i.e., client-centric) interface rather than a general-purpose, language-neutral representation interface. Second, our adaptation layer exports two interfaces, a representation interface supporting queries on the represented program and a language interface that the client queries toconfigure itself suitably for the given language. Straightforward object-oriented extensions enhance reuse and ease the development of multi-language tools.

机译:

交互式程序分析工具通常是为一种特定的程序表示量身定制的,因此适应一种新语言的成本很高。缓解适应性的一种方法是在现有语言表示和程序分析工具之间引入中间抽象-适应层。该适应层将工具的查询转换为针对特定表示形式的查询。

我们在StarTool程序分析工具上使用此方法进行的实验产生了C,Tcl / Tk和Ada的低成本重新定位目标。但是,对方法进行必要的调整后,就可以提高客户的可重新定向性。首先,通过使我们的工具导入以工具为中心(即以客户为中心)的接口,而不是使用通用的,与语言无关的表示接口,可以简化重定位。其次,我们的适配层导出两个接口,一个表示接口,支持对所表示程序的查询,以及一个语言接口,客户端查询该接口以针对给定语言进行适当配置。面向对象的直接扩展增强了重用性并简化了多语言工具的开发。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号