C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

understand source code of a C++ program written by someone e

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
TCMA
Guest





PostPosted: Tue Dec 21, 2004 4:47 am    Post subject: understand source code of a C++ program written by someone e Reply with quote



I am looking for some tools to help me understand source code of a
program written in C++ by someone else.
Are there any non-commercial, open source C or C++ tools to reverse
engineer C or C++ programs with source codes on linux?
i.e. It parses any sized C or C++ project to help reverse engineer,
document, draw UML diagram and understand it and thus maintain it
better.
Back to top
Ivan Vecerina
Guest





PostPosted: Tue Dec 21, 2004 5:07 am    Post subject: Re: understand source code of a C++ program written by someo Reply with quote



"TCMA" <maottawa2 (AT) yahoo (DOT) ca> wrote

Quote:
I am looking for some tools to help me understand source code of a
program written in C++ by someone else.
Are there any non-commercial, open source C or C++ tools to reverse
engineer C or C++ programs with source codes on linux?
i.e. It parses any sized C or C++ project to help reverse engineer,
document, draw UML diagram and understand it and thus maintain it
better.
As a free tool, try doxygen ([url]www.doxygen.com)[/url].

It can generate hyperlinked HTML from source code, class hierarchy
graphs, called-by lists, and more...

hth,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- e-mail contact form




Back to top
E. Robert Tisdale
Guest





PostPosted: Tue Dec 21, 2004 5:18 am    Post subject: Re: understand source code of a C++ program written by someo Reply with quote



TCMA wrote:

Quote:
I am looking for some tools to help me understand source code of a
program written in C++ by someone else.
Are there any non-commercial, open source C or C++ tools to reverse
engineer C or C++ programs with source codes on linux?
i.e. It parses any sized C or C++ project to help reverse engineer,
document, draw UML diagram and understand it and thus maintain it
better.

No.
There is no tool that can make sense out of nonsense.
There are programs like Doxygen

http://www.doxygen.org/

that will automatically create documentation
from comments embedded in your source code
so that you can maintain your code an documentation together.

Back to top
Ivan Vecerina
Guest





PostPosted: Tue Dec 21, 2004 9:24 am    Post subject: Re: understand source code of a C++ program written by someo Reply with quote

"E. Robert Tisdale" <E.Robert.Tisdale (AT) jpl (DOT) nasa.gov> wrote

Quote:
TCMA wrote:

I am looking for some tools to help me understand source code of a
program written in C++ by someone else.
Are there any non-commercial, open source C or C++ tools to reverse
engineer C or C++ programs with source codes on linux?
i.e. It parses any sized C or C++ project to help reverse engineer,
document, draw UML diagram and understand it and thus maintain it
better.

No.
There is no tool that can make sense out of nonsense.
There are programs like Doxygen

http://www.doxygen.org/

that will automatically create documentation
from comments embedded in your source code
so that you can maintain your code an documentation together.

Just because this is easily misunderstood, I would like to insist
that doxygen can generate a lot of useful information, also from
code that does not contain any (doxygen) comments.
The output can still include:
- hyperlinked source code (click an identifier -> shows its definition)
- header dependencies (includes & included-by graphs)
- function call dependencies (links to all calls to a function)
- class hierarchies (graphs, links)
- index of namespaces, class names, etc...

There are IDEs that can provide some of the navigation interactively.
Nevertheless, doxygen generates valuable information (and even more
once you use doxygen-specific comments), expecially when reviewing
the structure of a program.


Regards,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form



Back to top
Howard
Guest





PostPosted: Tue Dec 21, 2004 4:23 pm    Post subject: Re: understand source code of a C++ program written by someo Reply with quote


"TCMA" <maottawa2 (AT) yahoo (DOT) ca> wrote

Quote:
I am looking for some tools to help me understand source code of a
program written in C++ by someone else.
Are there any non-commercial, open source C or C++ tools to reverse
engineer C or C++ programs with source codes on linux?
i.e. It parses any sized C or C++ project to help reverse engineer,
document, draw UML diagram and understand it and thus maintain it
better.

Some compilers have pretty good class browsers that will help. I'm not sure
about their ability to format the output for printers...you'd have to check.
But CodeWarrior (which I use) does a pretty good class tree diagram.

Rational Rose will do the job of creating UML from source, I think. (But
it's insanely expensive!)

Just a little (nit-picky) side note: source code doesn't require "reverse
engineering", since it's already source code. That term usually means
taking raw machine code and creating some form of assembler or source code
from it.

-Howard




Back to top
olivier
Guest





PostPosted: Tue Jan 18, 2005 2:31 pm    Post subject: Re: understand source code of a C++ program written by someo Reply with quote

"Ivan Vecerina" <INVALID_use_webform_instead (AT) vecerina (DOT) com> wrote



what about umbrello ?
Back to top
Ivan Vecerina
Guest





PostPosted: Wed Jan 19, 2005 3:15 am    Post subject: Re: understand source code of a C++ program written by someo Reply with quote

"olivier" <wxuserbrest (AT) yahoo (DOT) fr> wrote

Quote:
"Ivan Vecerina" <INVALID_use_webform_instead (AT) vecerina (DOT) com> wrote in
message news:<cqb7b4$bil$1 (AT) news (DOT) hispeed.ch>...


what about umbrello ?

Found here: http://uml.sourceforge.net
I had never tried it. It looks like a nice UML modeler and code generator.
Thanks, I will look into it.

However, the original question was about extracting design information
from existing source code. Umbrello does not seem to have that capability.


Cheers,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form



Back to top
Joseph Turian
Guest





PostPosted: Wed Jan 19, 2005 9:16 pm    Post subject: Re: understand source code of a C++ program written by someo Reply with quote

There's also the Source-Navigator IDE.

http://sourcenav.sourceforge.net/
I've never actually used it, but it looks promising.

Joseph

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.