LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-19-2009, 08:20 AM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
using the source code to learn about an app


Hi,

Does anybody regularly analyse (C) source code to work out how an application is but together?

Do you use something better than recursive grep? IS there a way to pullout, say, all the function declarations, conditional loops, blocks, etc?

I suppose setting it up in an IDE is an option but I was interested in something less sophisticated. Just some best practices in C dcode analysis.

Not for bug-hunting, jsut for learnign abotu how it's put together.

Many thanks!
 
Old 01-19-2009, 12:29 PM   #2
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
First thing that comes to my mind : http://www.stack.nl/~dimitri/doxygen/

Excerpt from their site:
Quote:
You can configure doxygen to extract the code structure from undocumented source files. This is very useful to quickly find your way in large source distributions. You can also visualize the relations between the various elements by means of include dependency graphs, inheritance diagrams, and collaboration diagrams, which are all generated automatically.
I tried it just for projects that used it also as for their documentation...
 
Old 01-20-2009, 05:55 AM   #3
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
You have "ctags" and "cscope" tools which do great job too
 
Old 01-20-2009, 04:02 PM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Original Poster
Rep: Reputation: 32
Great thanks vladmihaisima and jf.argentino/

I'll research those. Actually, the names are familiar, but now I see the context they can be used in. Cheers!
 
Old 01-24-2009, 10:08 AM   #5
renjithrajasekaran
Member
 
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
Why don't you use Eclipse for your Development. It makes life a loooooooooooooooooot more easier and programming a muuuuuuuuuuuuuuuuuuch more pleasurable experience!



(Did I mention it's also free!)


Linux Archive

Last edited by renjithrajasekaran; 01-25-2009 at 03:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't remove an app: error code 3 for DPKG vargadanis Ubuntu 5 11-17-2007 04:32 AM
source code library app for Subversion climbingmerlin Programming 2 03-20-2007 03:52 AM
How to call an app from my c++ code? Puckaroo Programming 1 10-30-2006 10:28 AM
where can I find some c++ source code to learn? brucebird Programming 2 09-16-2006 01:26 AM
I want to learn the code! matthewa Programming 6 03-20-2005 12:35 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration