comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » dependency tree / call graph in idl (cscope for idl)?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: dependency tree / call graph in idl (cscope for idl)? [message #63818 is a reply to message #63673] Wed, 19 November 2008 08:35 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Nov 19, 8:51 am, Sven Utcke <utcke+n...@informatik.uni-hamburg.de>
wrote:
> what's the recommended way to do dependency tracking in IDL, you know,
> FUNCTION X depeneds on PRO Y which calls FUNCTIONs A, B, and C.  That
> stuff.  Preferably, but not necessarily from emacs?
>
> In C, I would for example use cscope <http://cscope.sourceforge.net/>.
>
> Reason I'm asking: I inherited a project with quite a few
> interdependent files (79 files so far, with 14000 lines, but I'm sure
> to find I missed some once dependency tracking works), and in order to
> get any idea at all what this is doing I would like to look at some
> sort of call graph.
>
> So what is the IDL-way of doing this?

There is nothing I know in IDL that would do this currently. The only
suggestion I have is to start a fresh IDL session. Compile the 79
files that you have so far and then use RESOLVE_ALL. This will compile
routines that are called by the original 79 (and the routines that are
called by those routines, etc.). There should be messages in the
output log like "% Compiled module: ..." that should give an
indication of the needed routines. Of course, this is far short of a
call graph, but might serve depending on your requirements.

I have thought about adding such a feature to IDLdoc. At some point, I
think I will need a full blown IDL parser to extract all the
information I want to get from a code base.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Associate Research Scientist
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: loop for 365 days with 18 days interval
Next Topic: how can i get an [n,1] array without reform?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 13:22:27 PDT 2025

Total time taken to generate the page: 1.44046 seconds