Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Generating documentation on the structure of a program
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
VICTOR  
View profile  
 More options Jun 14 2009, 12:09 pm
Newsgroups: comp.lang.fortran
From: VICTOR <victor.hera...@gmail.com>
Date: Sun, 14 Jun 2009 09:09:42 -0700 (PDT)
Local: Sun, Jun 14 2009 12:09 pm
Subject: Generating documentation on the structure of a program
Hi,

i am facing 20,000 lines of code. I inherited them from a former phd
student who wrote the code but didn't care to show the structure of
what he wrote. Now i have to guess what the dependencies are, i mean,
what the main program is and how the subroutines are connected to each
other.

I wonder if there is a software/technicque that helps me do that in
Fortran. I accept any ideas. I hope you understand my inquiry.
Regards,

Victor


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
m_b_metcalf  
View profile  
 More options Jun 14 2009, 2:02 pm
Newsgroups: comp.lang.fortran
From: m_b_metcalf <michaelmetc...@compuserve.com>
Date: Sun, 14 Jun 2009 11:02:58 -0700 (PDT)
Local: Sun, Jun 14 2009 2:02 pm
Subject: Re: Generating documentation on the structure of a program
On Jun 14, 6:09 pm, VICTOR <victor.hera...@gmail.com> wrote:

> Hi,

> i am facing 20,000 lines of code. I inherited them from a former phd
> student who wrote the code but didn't care to show the structure of
> what he wrote. Now i have to guess what the dependencies are, i mean,
> what the main program is and how the subroutines are connected to each
> other.

> I wonder if there is a software/technicque that helps me do that in
> Fortran. I accept any ideas. I hope you understand my inquiry.
> Regards,

> Victor

If it's Fortran 77, you can look at http://pcbunn.cithep.caltech.edu/jjb/floppy.html

Regards,

Mike Metcalf


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
VICTOR  
View profile  
 More options Jun 14 2009, 2:35 pm
Newsgroups: comp.lang.fortran
From: VICTOR <victor.hera...@gmail.com>
Date: Sun, 14 Jun 2009 11:35:29 -0700 (PDT)
Local: Sun, Jun 14 2009 2:35 pm
Subject: Re: Generating documentation on the structure of a program
On Jun 14, 8:02 pm, m_b_metcalf <michaelmetc...@compuserve.com> wrote:

Thank you. I am dad to tell it's fortran 90. A funny thing: he old me
to read about subroutines in the first chapter of a book. I forgtot to
mention what he should have done. Funny isn't it ?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damian  
View profile  
 More options Jun 15 2009, 12:50 am
Newsgroups: comp.lang.fortran
From: Damian <dam...@rouson.net>
Date: Sun, 14 Jun 2009 21:50:39 -0700 (PDT)
Local: Mon, Jun 15 2009 12:50 am
Subject: Re: Generating documentation on the structure of a program
On Jun 14, 9:09 am, VICTOR <victor.hera...@gmail.com> wrote:

> Hi,

> i am facing 20,000 lines of code. I inherited them from a former phd
> student who wrote the code but didn't care to show the structure of
> what he wrote. Now i have to guess what the dependencies are, i mean,
> what the main program is and how the subroutines are connected to each
> other.

> I wonder if there is a software/technicque that helps me do that in
> Fortran. I accept any ideas. I hope you understand my inquiry.
> Regards,

> Victor

I wonder if Doxygen can help.  The Doxygen web page says, "You can
configure doxygen to extract the code structure from undocumented
source files."  See http://www.stack.nl/~dimitri/doxygen/.

Damian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
n...@cam.ac.uk  
View profile  
 More options Jun 15 2009, 3:13 am
Newsgroups: comp.lang.fortran
From: n...@cam.ac.uk
Date: Mon, 15 Jun 2009 08:13:42 +0100 (BST)
Local: Mon, Jun 15 2009 3:13 am
Subject: Re: Generating documentation on the structure of a program
In article <f3b8a37f-f65c-4fa6-b278-da2e99a60...@p6g2000pre.googlegroups.com>,

Damian  <dam...@rouson.net> wrote:

>I wonder if Doxygen can help.  The Doxygen web page says, "You can
>configure doxygen to extract the code structure from undocumented
>source files."  See http://www.stack.nl/~dimitri/doxygen/.

And it squares circles, whitens your teeth and makes you irresistable
to the opposite sex.

That claim is obviously impossible to deliver.  However, it MAY be
able to extract the call chain, which is a feasible task.  It also
isn't hard to write a crude parser that will do the job, though is
a little painful if you have to be able to detect functions that
are declared as such merely by being called.

Alternatively, and this is the way I would proceed, split the code
apart into modules and procedures, compile each separately and use
nm or elfdump on the object files.  The write a program to display
that conveniently.  Tedious, but not difficult.

Regards,
Nick Maclaren.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Jun 15 2009, 4:43 am
Newsgroups: comp.lang.fortran
From: Arjen Markus <arjen.mar...@wldelft.nl>
Date: Mon, 15 Jun 2009 01:43:49 -0700 (PDT)
Local: Mon, Jun 15 2009 4:43 am
Subject: Re: Generating documentation on the structure of a program
On 15 jun, 09:13, n...@cam.ac.uk wrote:

DOYGEN is capable of generating call graphs (for each routine:
which routines are called, by which routines is it called itself).
I am not quite sure what it can do with functions that are not
explicitly declared, but it seems to be a nice enough tool.

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
n...@cam.ac.uk  
View profile  
 More options Jun 15 2009, 5:02 am
Newsgroups: comp.lang.fortran
From: n...@cam.ac.uk
Date: Mon, 15 Jun 2009 10:02:44 +0100 (BST)
Local: Mon, Jun 15 2009 5:02 am
Subject: Re: Generating documentation on the structure of a program
In article <c29a003d-d24c-496a-b13f-d2703f212...@k2g2000yql.googlegroups.com>,
Arjen Markus  <arjen.mar...@wldelft.nl> wrote:

>DOYGEN is capable of generating call graphs (for each routine:
>which routines are called, by which routines is it called itself).
>I am not quite sure what it can do with functions that are not
>explicitly declared, but it seems to be a nice enough tool.

As I said.

What it CANNOT do is to "extract the code structure from undocumented
source files."  Whether it does anything sensible with procedures
passed as arguments, I don't know,, but it assuredly cannot do
anything useful with programs that use procedure variables in
arbitrary ways.  To achieve that, it would have to solve the halting
problem.

My objection is to its hype, not its functionality.

Regards,
Nick Maclaren.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Gerrit Kootstra  
View profile  
 More options Jun 15 2009, 5:36 am
Newsgroups: comp.lang.fortran
From: Jan Gerrit Kootstra <jan.ger...@kootstra.org.uk>
Date: Mon, 15 Jun 2009 11:36:38 +0200
Local: Mon, Jun 15 2009 5:36 am
Subject: Re: Generating documentation on the structure of a program
Arjen Markus schreef:

Arjen,

Which version of doxygen do you use?

I did not get version 1.4.7 to work on Red Hat Enterprise Linux 5.3. I
used the rpm.

So I only use the style file.

Kind regards,

Jan Gerrit Kootstra


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Jun 15 2009, 8:35 am
Newsgroups: comp.lang.fortran
From: Arjen Markus <arjen.mar...@wldelft.nl>
Date: Mon, 15 Jun 2009 05:35:59 -0700 (PDT)
Local: Mon, Jun 15 2009 8:35 am
Subject: Re: Generating documentation on the structure of a program
On 15 jun, 11:36, Jan Gerrit Kootstra <jan.ger...@kootstra.org.uk>
wrote:

I saw a demonstration by a colleague last week. He used version 1.5.9
on
Windows and that works fine.

I have tried it myself just now: you have to set a bunch of
configuration
options and it does not seem to like .f files very much, but it does
extract information in modules.

I am just experimenting right now and I will have to ask my colleague
what options he used exactly ...

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Jun 15 2009, 9:13 am
Newsgroups: comp.lang.fortran
From: Arjen Markus <arjen.mar...@wldelft.nl>
Date: Mon, 15 Jun 2009 06:13:41 -0700 (PDT)
Local: Mon, Jun 15 2009 9:13 am
Subject: Re: Generating documentation on the structure of a program
On 15 jun, 14:35, Arjen Markus <arjen.mar...@wldelft.nl> wrote:

Ah, the secret is in the \file comment: include something like

! ! \file filename.f

in the source files to get DOXYGEN to parse them and produce an
overview
of the routines it contains. That is the minimum requirement it seems
(unless
it contains modules).

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjen Markus  
View profile  
 More options Jun 15 2009, 2:33 am
Newsgroups: comp.lang.fortran
From: Arjen Markus <arjen.mar...@wldelft.nl>
Date: Sun, 14 Jun 2009 23:33:14 -0700 (PDT)
Local: Mon, Jun 15 2009 2:33 am
Subject: Re: Generating documentation on the structure of a program
On 15 jun, 06:50, Damian <dam...@rouson.net> wrote:

Yes, it does that by generating call trees. The output can be in the
form of HTML pages showing the headers of the routines and the list of
routines that it calls and vice versa. (A colleague showed some
results
of DOXYGEN last week - I have not used it myself yet)

Regards,

Arjen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ira Baxter  
View profile  
 More options Jun 15 2010, 4:45 pm
Newsgroups: comp.lang.fortran
From: "Ira Baxter" <idbax...@semdesigns.com>
Date: Tue, 15 Jun 2010 15:45:26 -0500
Local: Tues, Jun 15 2010 4:45 pm
Subject: Re: Generating documentation on the structure of a program
<n...@cam.ac.uk> wrote in message

news:h152nk$stu$1@smaug.linux.pwf.cam.ac.uk...

Well, it probably *can* extract a subset of the true call graph,
as evidenced by code statements that clearly contain direct function calls.
This is pretty easy even with a "bad parser".

To get an upper bound on the call graph, you can do a conservative
analysis of function pointers, which gets you around the halting
problem with some obvious loss of precision.  That's still a lot
better than *just* the direct function calls.

> My objection is to its hype, not its functionality.

Agreed.

--
Ira Baxter, CTO
www.semanticdesigns.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »