On Wed, Aug 26, 2009 at 11:53 PM, bala
chandar<[email protected]> wrote:
> Hello guys,
>    I want to develop an open source project called as splint.I
> downloaded the source code of that project.It contains lots of files
> in it.Headers,code files etc.To develop that project i need to
> understand the project source code.Is there any tool to analyze the
> source code.Else how do i start to study the source code.
>

I have a way of reading the source. It is logical and I use it when I use
sources myself.

Have 3 windows.
1) An editor of your choice in the folder that you want
2) A file manager
3) cscope

I generally tile this up into the editor as one half screen, cscope top right
and mc bottom right(NOTE: Unnecessary info)

By trial and error, I find the list of files that do not depend on
non-standard headers.
I read the sources in them and then use cscope to find out where the functions,
structures and macros are used.

Then I find out the file that has least fan-in. Preferrably, only the
header/files that I
already reviewed.

Slowly, the entire source is covered.

---
Ashok `ScriptDevil` Gautham

P.S. This might not be the best method. An alternate is to start at
the main file
and then navigate down using cscope to find the declarations. But I
find that makes
me dizzy since I get distracted often :P
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to