analyzing dependencies in code

eliben <eliben@gmail.com>
Fri, 16 Nov 2007 00:42:27 -0800 (PST)

          From comp.compilers

Related articles
analyzing dependencies in code eliben@gmail.com (eliben) (2007-11-16)
Re: analyzing dependencies in code idbaxter@semdesigns.com (2007-11-17)
Re: analyzing dependencies in code kamalpr@gmail.com (IndianTechie) (2007-11-17)
Re: analyzing dependencies in code SidTouati@inria.fr (Sid Touati) (2007-12-13)
| List of all articles for this month |

From: eliben <eliben@gmail.com>
Newsgroups: comp.compilers
Date: Fri, 16 Nov 2007 00:42:27 -0800 (PST)
Organization: Compilers Central
Keywords: analysis, C, question
Posted-Date: 16 Nov 2007 20:36:25 EST

Hello,


I have a bunch of rather convoluted C code that uses a lot of global
variables. I'm trying to see if I can devise some automatic way of
analyzing this code, helping me understand it.
Suppose I can obtain the AST for this code (using c2c). I want to
analyze the AST and, given some global variable V, understand which
other global variables it affects, and what functions can be called as
a result of a change in it.


I tried approaching this the ad-hoc way, but it's becoming
complicated. I see some parallels to dataflow analysis here, though it
seems to be a bit different.


Any ideas of proven methods to do this right ?


Thanks


Post a followup to this message

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