Download User guide for Windows with IDE

Transcript
4.12. GENERATING FORTRAN 90 INTERFACES
4.12
45
Generating Fortran 90 interfaces
The supplied utility INTERF takes a FORCHECK library file as input and produces a Fortran 90
module with an interface body for each of the subprograms in the library file. The output is in
Fortran 90 free source form.
This can be useful when converting from FORTRAN 77 to Fortran 90 and to examine the
properties of the subprograms as they are contained in the library file. By specifying the module
in the program units which reference these subprograms the interfaces of the subprograms
become explicit and both the compiler and FORCHECK can verify the references while compiling
or analyzing the program unit.
4.12.1
Operation of INTERF from the IDE
To generate an interface select Tools/Interface builder. You now can select a FORCHECK
library file as input and a fortran source file as output file. INTERF places the module with
interfaces in the fortran source output file.
4.12.2
Operation of INTERF from the commandline
The command line has the following form:
INTERF libraryfile[options]
where libraryfile is the name of the FORCHECK library file in which the information of the
program units is stored.
Outputfile is the name of the file in which the generated module with the interfaces will
be stored. The default suffix is .f.
The following options can be specified:
/BA
Exit if errors during command input. When FORCHECK is started from a batch file,
this option suppresses interactive handling of command input errors.
/HE
Present help information on screen.
/LI:l
Place the module with the interfaces in the file l.
4.13
Storing the Reference structure and dependency of modules
Beside presenting the reference structure (call tree) and the dependency of modules in the
listing file FORCHECK can store the reference structure and the module dependencies in XML
format in separate output files by specifying a filename in the IDE or enabling the reference
structure and module dependencies file options. See also the subsection "Reference structure
in XML format" and "Module dependencies in XML format" of the chapter "Analysis".