[GCC-XML] RE: GCC-XML extension

Brad King brad.king at kitware.com
Thu Jan 18 15:50:26 EST 2001


Mike,

> I am happy to see this project start up and that you are going to be
> working on the project. As you might have remembered, I have been
> working in parallel on a complementry xml interface.
I'd be interested in seeing what you have, if possible.  Could you post a
link to the list?

> 1. Taking the tree.h from the GCC and running it through your XML output
> routine.
> 	Maybe you can run this through your currently running copy?
> 	Even an example XML output directory would be cool.....
I'll try that out when I get a chance, and put the results on the
web.  You should be able to do it, though, by just creating a short .cxx
file that includes tree.h, and run g++ on that.  Remember that the
extension is in the C++ front end, so it won't do anything for c-only
code, unless it is compiled by the C++ compiler.

> 2. Creating a XSLT routine to extract the field members and thier types
from
> XML file.
> 3. Generating a better XML-Output routine that uses the full type info
to
> extract all the fields.
Things like this are the reason I created this list.

> 4. Adding in the knowledge that I have gained from the tree-internals
> and the dynamic usage data to create a kick-ass
Huh?  I think you might have forgotten to complete this sentence :)

> 5. Extending this to be able to xml-dump *any* compiler data structure.
> 	- rtl
> 	- preprocessor tokens
> 	- bison rules 
> 	- STABS debugging information
> 	- object file layout.
> I think that this would be a great contribution to the gnu compiler
This would certainly be interesting, and could facilitate external
debuggers for the compiler.  For this GCC-XML project, I had in mind to be
able to describe C++ in XML, but we could have both.  If we integrate
something into GCC to dump out its tree representation of the program,
then something else could get the information it needs to generate a C++
program representation in another XML format.  This is adding an extra
stage, though, and the GCC tree would be HUGE in XML.

> 6. make a routine to be able to also dump a DTD from a given data
structure.
I'm not sure what you mean by this.  Could you elaborate, please?

-Brad









More information about the gccxml mailing list