Re: Is this a form of Data Flow Analysis, and what is the proper way solution to the problem?

"Oliver Wong" <owong@castortech.com>
20 Jan 2006 16:12:15 -0500

          From comp.compilers

Related articles
Is this a form of Data Flow Analysis, and what is the proper way solut owong@castortech.com (Oliver Wong) (2006-01-12)
Re: Is this a form of Data Flow Analysis, and what is the proper way s gneuner2@comcast.net (George Neuner) (2006-01-17)
Re: Is this a form of Data Flow Analysis, and what is the proper way s henry@spsystems.net (2006-01-17)
Re: Is this a form of Data Flow Analysis, and what is the proper way s DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-01-17)
Re: Is this a form of Data Flow Analysis, and what is the proper way s paolo.bonzini@gmail.com (2006-01-17)
Re: Is this a form of Data Flow Analysis, and what is the proper way s owong@castortech.com (Oliver Wong) (2006-01-20)
Re: Is this a form of Data Flow Analysis, and what is the proper way s gneuner2@comcast.net (George Neuner) (2006-01-26)
Re: Is this a form of Data Flow Analysis, and what is the proper way s paolo.bonzini@gmail.com (2006-01-26)
Re: Is this a form of Data Flow Analysis, and what is the proper way s pohjalai@cc.helsinki.fi (A Pietu Pohjalainen) (2006-01-26)
Re: Is this a form of Data Flow Analysis, and what is the proper way s owong@castortech.com (Oliver Wong) (2006-01-28)
Re: Is this a form of Data Flow Analysis, and what is the proper way s pohjalai@cc.helsinki.fi (A Pietu Pohjalainen) (2006-02-03)
| List of all articles for this month |
From: "Oliver Wong" <owong@castortech.com>
Newsgroups: comp.compilers
Date: 20 Jan 2006 16:12:15 -0500
Organization: GlobeTrotter
References: 06-01-037
Keywords: analysis
Posted-Date: 20 Jan 2006 16:12:15 EST

        Thank you for your replies. I receive an answer to my specific question,
but after doing some more reading on DFA, I have a few more general
questions. First, I'd like to address the questions that have been directed
towards me.


> Why don't you use an formal translation of your verbose formulation?
> I.e.:
> * The write to x depends on y.
> * The write to x depends on z.


        This is what I now do. The output is something like:


    LeftAssignmentOccurrence: "x":21:5:Write
        Occurences Participating in assignment value:
            Occurrence: "y":21:14:Read
            Occurrence: "z":21:19:Read




> Did you ever consider SSA, for use in your analysis and output?


        The tool I'm working on needs to be able to preserve the original
formatting of the source code as much as possible (e.g. comments,
indentation style, etc.) which is why we haven't translated away from an AST
into other representations.


        I've tried to read up on various types of DFAs, such as "def-use chains"
and "reaching definitions". Some of the articles I've read seem to imply
that I should already have a control flow graph before starting the
analysis, and other articles seem to imply that this the CFG should be built
up in parallel with the analysis. Can someone clear up what the proper
ordering is, or where I can go to read more about this?


        In my current implementation, there is no explicit CFG being built at
all.


        - Oliver


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.