• Media type: E-Article
  • Title: Integrating program analyses with programmer productivity tools
  • Contributor: von Dincklage, Daniel; Diwan, Amer
  • Published: Wiley, 2011
  • Published in: Software: Practice and Experience, 41 (2011) 7, Seite 817-840
  • Language: English
  • DOI: 10.1002/spe.1035
  • ISSN: 0038-0644; 1097-024X
  • Keywords: Software
  • Origination:
  • Footnote:
  • Description: <jats:title>Abstract</jats:title><jats:p>Because software continues to grow in size and complexity, programmers increasingly rely on productivity tools to understand, debug, and modify their programs. These tools typically use program analyses to produce information for the programmer. This is problematic because it is based on the assumption that the programmer and program analyses all use the same vocabulary. If the programmer and analyses did not use the same vocabulary then the results of the analyses will be meaningless to the programmer. For example, ‘v124 may be NULL’ does not mean much to the programmer but ‘myStack may be NULL’ is meaningful. Often, the programmer and analyses prefer different vocabularies. While the programmer prefers his programs' source code, an analysis will prefer a simplified representation. Unfortunately, writing an analysis that works on the source code is difficult because the analysis must deal with the idiosyncracies of the source language (e.g. nested classes). In comparison, writing an analysis on SSA form is easy but the output of the analysis is not meaningful to the programmer; it must somehow be translated into something the programmer understands. We present a system, RTalk, that makes it easy to support both the programmers' and the analysis' needs. RTalk generates a translator between the programmers' and the analysis' vocabulary. Thus both the programmer and the analysis can use the vocabulary most natural to them. We demonstrate the effectiveness of RTalk by describing program understanding and program optimization tools that we have already built using RTalk. Copyright © 2011 John Wiley &amp; Sons, Ltd.</jats:p>