xml output of fortran front end?

Craig Rasmussen crasmussen@lanl.gov
Fri Apr 2 22:04:00 GMT 2004


On Apr 2, 2004, at 11:14 AM, Paul Brook wrote:

> 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?
>
> 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.

I've briefly looked at this and it looks like it will do what we want.

> 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.

We already have an xml schema (but common may be a problem :-).

We do need similar functionality in other languages but I would expect
that we lose to much information at the language independent 
(GIMPLE/GENERIC)
level (although I haven't seen it to be sure).

I'll consult with my colleagues to see what they say.

Thanks,
Craig



More information about the Fortran mailing list