loading...
 This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Third IEEE International Workshop on Source Code Analysis and Manipulation
XOgastan: XML-Oriented gcc AST Analysis and Transformations
Amsterdam, The Netherlands
September 26-September 27
ISBN: 0-7695-2005-7
G. Antoniol, University of Sannio
M. Di Penta, University of Sannio
G. Masone, University of Sannio
U. Villano, University of Sannio
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.
This paper presents 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. Here the tool is illustrated and its design is discussed, showing its architecture and the main implementation choices.
Index Terms:
source code analysis tools, gcc, XML, GXL
Citation:
G. Antoniol, M. Di Penta, G. Masone, U. Villano, "XOgastan: XML-Oriented gcc AST Analysis and Transformations," scam, pp.173, Third IEEE International Workshop on Source Code Analysis and Manipulation, 2003
Usage of this product signifies your acceptance of the Terms of Use.