From owner-sc22wg5@open-std.org  Thu Jan 29 10:11:05 2009
Return-Path: <owner-sc22wg5@open-std.org>
X-Original-To: sc22wg5-dom7
Delivered-To: sc22wg5-dom7@www2.open-std.org
Received: by www2.open-std.org (Postfix, from userid 521)
	id 5870BC56CFF; Thu, 29 Jan 2009 10:11:05 +0100 (CET)
X-Original-To: sc22wg5@open-std.org
Delivered-To: sc22wg5@open-std.org
Received: from ppsw-7.csi.cam.ac.uk (ppsw-7.csi.cam.ac.uk [131.111.8.137])
	by www2.open-std.org (Postfix) with ESMTP id CC552C178D9
	for <sc22wg5@open-std.org>; Thu, 29 Jan 2009 10:11:03 +0100 (CET)
X-Cam-AntiVirus: no malware found
X-Cam-SpamDetails: not scanned
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-2.csi.cam.ac.uk ([131.111.8.54]:49844)
	by ppsw-7.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:25)
	with esmtpa (EXTERNAL:nmm1) id 1LSSvP-0001bY-Ny (Exim 4.70) for sc22wg5@open-std.org
	(return-path <nmm1@hermes.cam.ac.uk>); Thu, 29 Jan 2009 09:11:03 +0000
Received: from prayer by hermes-2.csi.cam.ac.uk (hermes.cam.ac.uk)
	with local (PRAYER:nmm1) id 1LSSvP-0004MN-DO (Exim 4.67) for sc22wg5@open-std.org
	(return-path <nmm1@hermes.cam.ac.uk>); Thu, 29 Jan 2009 09:11:03 +0000
Received: from [83.67.89.123] by webmail.hermes.cam.ac.uk
	with HTTP (Prayer-1.3.1); 29 Jan 2009 09:11:03 +0000
Date: 29 Jan 2009 09:11:03 +0000
From: "N.M. Maclaren" <nmm1@cam.ac.uk>
To: sc22wg5 <sc22wg5@open-std.org>
Subject: Re: [ukfortran] (SC22WG5.3934)  Call graph generator?
Message-ID: <Prayer.1.3.1.0901290911030.12091@hermes-2.csi.cam.ac.uk>
In-Reply-To: <20090129030501.C80B3C56CF9@www2.open-std.org>
References: <20090129014452.0D13AC178D9@www2.open-std.org>
 <20090129030501.C80B3C56CF9@www2.open-std.org>
X-Mailer: Prayer v1.3.1
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

On Jan 29 2009, Malcolm Cohen wrote:
>Van Snyder wrote:
>
>> Does anybody have a call graph generator for Fortran 90+ programs?
>>   
>One is included with the Fortran Builder, viz the NAG Fortran compiler 
>for Windows.

Bother :-(  The Microsoft aspect, I mean.

>> I would like a program that would take a list of file names, and would
>> produce structure trees and call graphs.
>
>This one produces a call graph for a "project" or subset thereof.  It's 
>relatively easy and painless to add files to a project (the files don't 
>have to be moved or anything).

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).

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 or the one(s)
that call the argument.

With procedure variables, things get even hairier, which is one of the
reasons that many software engineers think that they are a Bad Idea.


Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679

