Slashdot Mirror


Source Code Browsers?

patonw asks: "I just started working for a company as a programmer on a project with a huge existing codebase. The person hiring me half-jokingly said that it usually takes new employees two years before they understand the system. What I am looking for is not just an editor/browser but a program that displays functions and classes as connected graphs -- preferably free. I would like to view how programs are structured by function calls and class relations. I have access to several different kinds of platforms/operating systems."

3 of 67 comments (clear)

  1. Source Navigator by IYagami · · Score: 5, Informative

    Sponsored by RedHat:

    http://sourcenav.sourceforge.net/

    From the FAQ:
    Source-Navigator supports C, C++, Java, Tcl, [incr Tcl], FORTRAN and COBOL, and provides and SDK so that you can write your own parsers.

    Use Source-Navigator to:

    * Analyze how a change will effect external source modules.
    * Find every place in your code where a given function is called.
    * Find each file that includes a given header file.
    * Use the grep tool to search for a given string in all your source files.

  2. Doxygen by DeadMeat+(TM) · · Score: 4, Informative
    Doxygen can use Graphviz to generate class and call graphs for several different languages. It helps to have Doxygen or Javadoc annotations in the code, but it's not necessary.

    Unfortunately graph generation is pretty slow, but otherwise it's a fantastic tool.

  3. For PHP try this... by todsandberg · · Score: 4, Informative

    PHPXRef: PHP Cross Referencing Documentation Generator
    http://phpxref.sourceforge.net/