xml output of fortran front end?
Paul Brook
paul@codesourcery.com
Fri Apr 2 18:14:00 GMT 2004
On Friday 02 April 2004 18:48, Craig Rasmussen wrote:
> Has there been any discussion of an option
> in gFortran to output an xml file (or other
> intermediate representation) of such things
> as procedures and procedure parameters?
>
> Would this be a major effort? I would be willing
> to help. I know of several projects for which
> this functionality would be very useful.
It should be fairly easy to do. We already have -fdump-parse-tree which
probably contains the information you want, just not in a particularly easy
to parse form.
If you do implement this, I think it would be a good idea to coordinate these
"several projects", and decide on a common format and content.
You may also want to consider if similar functionality would be useful for
other languages. If this is the case it may be better to output this
information from the language independent GIMPLE/GENERIC representation used
by the common parts of the compiler.
Paul
More information about the Fortran
mailing list