|analyzing dependencies in code firstname.lastname@example.org (eliben) (2007-11-16)|
|Re: analyzing dependencies in code email@example.com (2007-11-17)|
|Re: analyzing dependencies in code firstname.lastname@example.org (IndianTechie) (2007-11-17)|
|Re: analyzing dependencies in code SidTouati@inria.fr (Sid Touati) (2007-12-13)|
|Date:||Fri, 16 Nov 2007 00:42:27 -0800 (PST)|
|Keywords:||analysis, C, question|
|Posted-Date:||16 Nov 2007 20:36:25 EST|
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 ?
Return to the
Search the comp.compilers archives again.