 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
TCMA Guest
|
Posted: Tue Dec 21, 2004 4:47 am Post subject: understand source code of a C++ program written by someone e |
|
|
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
|
Posted: Tue Dec 21, 2004 5:07 am Post subject: Re: understand source code of a C++ program written by someo |
|
|
"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
|
Posted: Tue Dec 21, 2004 5:18 am Post subject: Re: understand source code of a C++ program written by someo |
|
|
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
|
Posted: Tue Dec 21, 2004 9:24 am Post subject: Re: understand source code of a C++ program written by someo |
|
|
"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
|
Posted: Tue Dec 21, 2004 4:23 pm Post subject: Re: understand source code of a C++ program written by someo |
|
|
"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
|
Posted: Tue Jan 18, 2005 2:31 pm Post subject: Re: understand source code of a C++ program written by someo |
|
|
"Ivan Vecerina" <INVALID_use_webform_instead (AT) vecerina (DOT) com> wrote
what about umbrello ?
|
|
| Back to top |
|
 |
Ivan Vecerina Guest
|
Posted: Wed Jan 19, 2005 3:15 am Post subject: Re: understand source code of a C++ program written by someo |
|
|
"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
|
Posted: Wed Jan 19, 2005 9:16 pm Post subject: Re: understand source code of a C++ program written by someo |
|
|
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 |
|
 |
|
|
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
|
|