Linux.com

LXR is good

Posted by: Anonymous Coward on March 12, 2007 06:11 PM
Try LXR.

Check out <a href="http://lxr.mozilla.org/seamonkey/" title="mozilla.org">http://lxr.mozilla.org/seamonkey/</a mozilla.org>
and <a href="http://lxr.mozilla.org/seamonkey/source/js/src/jsparse.c" title="mozilla.org">http://lxr.mozilla.org/seamonkey/source/js/src/js<nobr>p<wbr></nobr> arse.c</a mozilla.org> for an example.

Setting up may be a little tricky. I think I remember that after running a program to compile a database, you had to adjust apache config files to view it (or else generate dbase in area where apache can already find it).

You browse the code through a web interface (from a browser pointing to the correct url). Hyperlinks provide easy and quick cross-referencing. I think pages are generated in real-time which is why you need a cgi webserver (I think cgi is in perl). See <a href="http://lxr.linux.no/New-INSTALL" title="linux.no">http://lxr.linux.no/New-INSTALL</a linux.no>

#

Return to Using Cscope and SilentBob to analyze source code