XOgastan: XML-oriented gcc AST analysis and transformations
XOgastan: XML-oriented gcc AST analysis and transformations
复制标题
XOgastan:面向 XML 的 gcc AST 分析和转换
DOI:
10.1109/scam.2003.1238043
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
Umberto Villano
中科院分区:
文献类型:
--
作者:
G. Antoniol;M. D. Penta;Gianluca Masone;Umberto Villano
Software maintenance, program analysis and transformation tools almost always rely on static source code analysis as the first and fundamental step to gather information. In the past, two different strategies have been adopted to develop tool suites. There are tools encompassing or implementing the source parse step, where the parser is internal to the toolkit, developed and maintained with it. A different approach builds tools on the top of external, already available, components such as compilers that output the abstract syntax tree, or make it available via an API. We present an approach and a tool, XOgastan, developed exploiting the gcc/g++ ability to save a representation of the intermediate abstract syntax tree into a file. XOgastan translates the gcc/g++ format into a graph exchange language representation, thus taking advantage of the high number of currently available XML tools for the subsequent analysis phases. The tool is illustrated and its design is discussed, showing its architecture and the main implementation choices.