|library for collecting data flow info email@example.com (Matt) (2002-08-10)|
|Date:||10 Aug 2002 02:13:09 -0400|
|Posted-Date:||10 Aug 2002 02:13:08 EDT|
Is there a generic, stand alone data flow library that could be
used within a C, f77, and f95 environment? I'd like to take
existing parsers and add calls to this library along the lines of
"here's a write to variable x", "here's a basic block", and then
later on tell it to compute def-use info for all variables (and
other things). After that I'd like to just query the results.
This sort of thing must have been built hundreds of times
before and I'd like to use someone else's work. I googled
"data flow library" and came up with suif and, well, something
else under suif. But suif doesn't deal with fortran. Are
these libraries dependent on C? It sounds like they depend on
suif's internal data structures and I'd rather not mess with
that. Am I asking for too much?
This is what I want to do. I built a "programmable preprocessor"
that takes a F90 program and a set of routines written in another
language (called dl) that is designed to munge F90. The output
is a new F90 program. Typically the dl routines are used to
translate a serial program into one that runs under mpi. What
I'd like to do is add dataflow information so the dl routines
can do a better job. So I already have parsers and internal
representations and I just want to add the data flow analysis.
Return to the
Search the comp.compilers archives again.