Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ f77cvt(1) — Sun FORTRAN 1.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

f77(1)

fpr(1)

fsplit(1)

F77CVT(1)  —  USER COMMANDS

NAME

f77cvt − VMS FORTRAN to Sun FORTRAN source code converter

SYNOPSIS

f77cvt [ −b ] [ −d ] [ −D ] [ −e ] [ −E ] [ −i ] [ −Ncx ] [ −Ndx ] [ −Nlx ] [ −P ] [ −s ] [ −v ]

filename.vf   |   filename.for   ...

DESCRIPTION

f77cvt is the VMS FORTRAN source code converter.  It converts source files written in valid VMS FORTRAN into FORTRAN source files acceptable to both the Sun FORTRAN and VMS FORTRAN compilers, except for possible VMS FORTRAN features which it can’t convert, which are reported by error messages.  It optionally produces warning messages if Sun-specific FORTRAN extensions are generated. 

The converter accepts input files with filenames ending in .vf  or .for,  in upper, lower or mixed case. 

It produces output files with filenames ending in  .f  or  .F  depending on the  −D option. 

The converter accepts options that roughly correspond to the VMS FORTRAN compiler options. 

A successful completion of  f77cvt  filename.vf   can be followed immediately by    f77 filename.f   or   f77 filename.F,   depending on the −D option. 

OPTIONS

−b Prevents the converter from creating BLOCK DATA subprograms for initialized COMMON variables. 

−d Enables VMS FORTRAN debugging statements.  If specified, lines with a D or  d in column 1 are converted into FORTRAN statements.  If this option is not used, these debugging statements are converted  into comments. 

−D Also enables VMS FORTRAN debugging statements, but with this option the debugging statements are enclosed by a pair of preprocessor statements, as shown here: #ifdef DEBUG
... 
#endif The preceding two options are mutually exclusive;   a diagnostic will result if you specify both of them.

−e Indicates that the input file(s) contains extended source lines (up to 132 characters long).  If your file contains extended lines and you omit this option, the source lines are truncated to 72 characters. 

−E Allows the output file(s) to contain extended source lines.  If this option is not specified, the output lines are broken into 72-column lines. 

−i Inserts the text of INCLUDE files into the converted programs. 

−Ncx Sets x as the maximum number of levels that control structures can be nested. 

−Ndx Sets x as the maximum number of levels that data structures and unions can be nested. 

−Nlx Sets x as the maximum number of continuation lines for a continued  statement.  (If you use -Nl50, then you can have a total of 51 lines: one first line and 50 after it.)  The default is 19, 1 first line and 19 after it. 

−P Suppresses the generation of preprocessor line numbers for dbx and f77.

−s Produces warning messages if Sun-specific FORTRAN extensions are generated. 

−v Enables verbose mode; that is, the converter places a FORTRAN comment before each converted line, describing the conversion  of the source code. 

FILES

filename.f FORTRAN source file (output from f77cvt without the −D option)

filename.F FORTRAN source file (output from f77cvt with the −D option)

filename.for valid VMS FORTRAN source file (input to f77cvt )

filename.vf valid VMS FORTRAN source file (input to f77cvt )

SEE ALSO

f77(1),  fpr(1),  fsplit(1)

Sun FORTRAN Programmer’s Guide

DIAGNOSTICS

The diagnostics produced by f77cvt itself are intended to be self-explanatory. 
 

Sun Release 4.0  —  Last change: 6 April 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026