home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
forut062.zip
/
ForUtil-0.62
/
man
/
preformat
/
fflow.1
next >
Wrap
Text File
|
1996-08-28
|
11KB
|
331 lines
FFLOW(1) ForUtil Fortran Tools FFLOW(1)
NNAAMMEE
fflow - generate a flowgraph for fortran files.
SSYYNNOOPPSSIISS
ffffllooww [[--cceeffhhiinnppqqttuuvv]] --EE_e_x_t --II_d_i_r --dd_d_e_p_t_h --ll_l_e_v_e_l --oo_f_i_l_e
--ss_n_a_m_e --xx_n_a_m_e [[ffiilleess]]
DDEESSCCRRIIPPTTIIOONN
ffffllooww Generates a (partial) flowgraph of a collection of
fortran files. When fed with a couple of directories
and/or files, ffffllooww creates a flowgraph indicating the
flow in your program. The output is written on stdout by
default but can be written to file. ffffllooww is very usefull
for large programs where you only want to see the flow-
graph of a certain part of a program.
OOPPTTIIOONNSS
--cc Using this option instructs ffffllooww to generate a
complete flowgraph for each subroutine or function
it encounters. By default, ffffllooww will place a ==
Line XX == in the output for each subroutine or
function for which it has already generated a flow-
graph. Beware though that using this option can
significantly increase the size of the output file
and that it can take a little longer to generate
all flowgraphs.
--ee Using this option will cause ffffllooww to not include
functions without calls in the output. Helps to
decrease the size of the output file.
--ff Include the full path of files in the output. The
default is to print the name of the file only.
Using this option increases the memory ffffllooww uses
to store its data, so it might be unwise to use
this option on msdos systems with their 640kb mem-
ory limit.
--hh,, ----hheellpp
gives a short description of every option you can
use.
--ii Using this option causes ffffllooww to not print unknown
function calls in the output. Usefull if you only
want to have a flowgraph of a part of a source
tree.
Linux August 1996 1
FFLOW(1) ForUtil Fortran Tools FFLOW(1)
--nn,, --nn--
Using this option will cause ffffllooww to tell what
subroutines are never invoked. If you only want to
check your files for this and do not want to gener-
ate a flowgraph, use -n-
--pp Starts the flowgraph at the PROGRAM definition.
When used with --uu , ffffllooww generates a flowgraph for
PROGRAM only.
Note: if you use the --uu option, ffffllooww will generate
a flowgraph for the first PROGRAM statement it
encounters.
--qq Be really quiet (usefull if called from a script).
Only error messages will be shown.
--tt Use tabs instead of | as level indicator.
--uu Do not print unused functions in the output file.
Using this option will cause ffffllooww to not print
functions and/or routines which are not referenced.
Use the --nn or --nn-- option if you only want to print
unused subroutines.
--vv Be verbose. Using this option shows a lot of use-
full information about the files being scanned.
----vveerrssiioonn
Show the version number of ffffllooww
--EE_e_x_t Extensions ffffllooww must use to determine which files
it has to scan. Up to eight -E are allowed. The
default extension is .f
--II_d_i_r Using this option tells ffffllooww which directories it
has to search for f77 files. Only the contents of
that directory are scanned. Subdirectories are
ignored. Up to 64 -I are allowed.
--dd_d_e_p_t_h
Sets the maximum recursion depth to depth. The
default value is 64. This recursion depth is the
maximum depth of function calls, and is mainly used
as a test for detecting recursion. If ffffllooww manages
Linux August 1996 2
FFLOW(1) ForUtil Fortran Tools FFLOW(1)
to get to the default value, this probably indi-
cates that somewhere in your program infinite
recursion might occur. If ffffllooww aborts saying it
has reached the maximum recursion depth, it means
that this number has been hit. If you are abso-
lutely sure that recursion does not appear in your
program, you can increase this number to the maxi-
mum value of an unsigned integer on your system.
The default value of 64 should be enough for any
program.
--ll_l_e_v_e_l
Using this option will cause ffffllooww to generate a
flowgraph which is only _l_e_v_e_l levels deep. This
option can be very usefull to get a general idea on
the flow in a very large program. It also will help
reduce the size of the generated flowgraph.
--oo_f_i_l_e file to write flowgraph to. The default is stdout.
--ss_n_a_m_e This option causes ffffllooww to start the output file
with the named function. When used with --uu , ffffllooww
generates a flowgraph for this function only.
--xx_n_a_m_e Tells ffffllooww to exclude the named file when scanning
the files found with the _-_I _-_E options. Up to 64 -x
options can be given.
EEXXAAMMPPLLEESS
ffffllooww --pp --uu ffoorrttrraann--ffiilleess generates a flowgraph for your
program only.
ffffllooww --ss_n_a_m_e --uu ffoorrttrraann--ffiilleess generates a flowgraph for
_[_n_a_m_e_] only.
ffffllooww --II_d_i_r_1 --II_d_i_r_2 --EE_._f --EE_._f_,_v generates a flowgraph from
files ending in _._f and _._f_,_v from the directories dir1 and
dir2.
DDIIAAGGNNOOSSTTIICCSS
The following warning messages can occur:
WWAARRNNIINNGG:: nnoo pprrooggrraamm eennttrryy ppooiinntt ffoouunndd iinn ffiillee _<_f_i_l_e_>
a call statement was encountered before a PROGRAM
statement was found. ffffllooww will use the name of
the file where this warning occurs as a program
name and continue.
Linux August 1996 3
FFLOW(1) ForUtil Fortran Tools FFLOW(1)
WWrriittee ffaaiilleedd
This error can occur when ffffllooww is writing a flow-
graph to file and a write error occurs. The most
likely reasons for this error to occur are _d_i_s_k
_f_u_l_l or _n_o _s_p_a_c_e _l_e_f_t _o_n _d_e_v_i_c_e
The flowgraph generated by ffffllooww can be very huge.
We have seen a complete flowgraph of a single func-
tion which was in excess of 50MB, so it's easy to
fill up your disk. When you encounter such large
flowgraphs, you might want to use the --ll_l_e_v_e_l
option in order to generate a useable flowgraph.
DDIISSTTRRIIBBUUTTIIOONN PPOOLLIICCYY
All utilities in this fortran utility suite are dis-
tributed under the GNU Public License.
CCOOMMPPAATTIIBBIILLIITTYY
ffffllooww has run under HP-UX 9 and 10, SGI IRIX 5.2 & 5.3,
DEC OSF1, SunOs 4.1 and 4.3, Cray Unicos, IBM AIX 3.2 &
4.1, Linux and MSDOS 6.2. ffffllooww also runs in a dos box
under Windows 3.1, 3.11 and Win95. An MS-Windows version,
Winfflow, is also available.
SSHHOORRTTCCOOMMIINNGGSS
The output of ffffllooww contains a flowgraph for each subrou-
tine or function found in the input files. When you give
ffffllooww the _-_c option, it can take a long time to write the
flowgraph to file if you have fed it a collection of
source files with a huge number of calls. This can be
annoying especially when running ffffllooww on MSDOS.
Currently, ffffllooww only looks at CALL, so although FUNCTION
is found, these do not show up in the flowgraph.
BBUUGGSS
The MS-DOS versions of these tools can cause problems
under MS-DOS if you feed them with a large collection of
files, few files with a lot of calls or a combination of
both. This is totally due to the 640kb memory limit MS-DOS
has.
If you think you have found a bug, you can send email to
the author, describing what the bug is, how you generated
it and if you can reproduce it. Also specify the platform
where this bug occured.
AAUUTTHHOORR
Koen D'Hondt
Linux August 1996 4
FFLOW(1) ForUtil Fortran Tools FFLOW(1)
ripley@xs4all.nl
(C)Copyright 1995-1996 by Ripley Software Development
SSEEEE AALLSSOO
ffttaaggss(1), ffffssccaann(1), ssccaann__ccoommmmoonnss(1), ggeett__ccoommmmoonn(1),
lliisstt__ccoommmmoonnss(1)
Linux August 1996 5