(j3.2006) (SC22WG5.3936) [ukfortran] Call graph generator?
Malcolm Cohen
malcolm
Thu Jan 29 10:07:42 UTC 2009
N.M. Maclaren wrote:
>
> This isn't TOTALLY off-list, so please bear with me. WHICH call graph?
> I assume that it is one of the static ones (i.e. A has the potential to
> call B).
Yes.
>
> The simple one consists only of the explicit calls, with no procedure
> arguments.
>
> With procedure arguments, there is a question of which procedure should
> be classed as the caller: the one that declares the external
It does not do that - it only adds them for actual invocations.
> or the one(s)
> that call the argument.
This tool effectively "clones" the called procedure when this happens,
so you get lines like
SS(DUMMY=FRED)
and
SS(DUMMY=BANANA)
and in those, counts references to the dummy as references to the
particular actual.
I'm not sure I would have chosen to do it like that (I didn't write the
tool), but I think it is a reasonable approach.
>
> With procedure variables, things get even hairier,
That is certainly true, though in this case the English version is one
release behind so does not accept procedure arguments anyway. Hmm, I'll
have to go and make sure it does something reasonable... whatever that is!
Cheers,
--
.......................Malcolm Cohen, Nihon NAG, Tokyo.
More information about the J3
mailing list