Static Source code analysis

This is a discussion on Static Source code analysis within the Compilers forums in Theory and Concepts category; I would like to parse existing C programs ( may be using JAVACC parser) and get some data like List of Functions List of Variables (Static , External, Local)... Whether the variable is input, output or bidirectional in a function etc.... and use the same for our modelling work. I would like to know if there is open source static code analyzer available in source code form which I can tailor to my specific requirement. Ideal if some tool is there reading programs in C and populate RDBMS database Regards Raj...

Go Back   Application Development Forum > Theory and Concepts > Compilers

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-25-2008, 07:48 AM
rajagopal
Guest
 
Default Static Source code analysis

I would like to parse existing C programs ( may be using JAVACC
parser) and get some data like

List of Functions
List of Variables (Static , External, Local)...
Whether the variable is input, output or bidirectional in a function
etc....
and use the same for our modelling work.

I would like to know if there is open source static code analyzer
available in source code form which I can tailor to my specific
requirement. Ideal if some tool is there reading programs in C and
populate RDBMS database

Regards
Raj
Reply With Quote
  #2  
Old 07-25-2008, 09:30 AM
Anne Pacalet
Guest
 
Default Re: Static Source code analysis

rajagopal a icrit :
> I would like to know if there is open source static code analyzer
> available in source code form which I can tailor to my specific
> requirement. Ideal if some tool is there reading programs in C and
> populate RDBMS database


Maybe you can have a look at Frama-C : www.frama-c.cea.fr
It is quite new, but I think that it can already answer to some of your
questions.

Anne.

Reply With Quote
  #3  
Old 07-25-2008, 02:29 PM
Eric Christopher
Guest
 
Default Re: Static Source code analysis

On Fri, Jul 25, 2008 at 4:48 AM, rajagopal <rajagopal.ns@gmail.com> wrote:
> I would like to parse existing C programs ( may be using JAVACC
> parser) and get some data like
>
> List of Functions
> List of Variables (Static , External, Local)...
> Whether the variable is input, output or bidirectional in a function
> etc....
> and use the same for our modelling work.
>


There's also a C languages front-end under development as part
of the llvm project here:

http://clang.llvm.org/

there's also ongoing work to use this front end for static analysis
and it's already
been used by a few open source projects.

-eric

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:07 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.