F77(1) — UNIX 3.0
NAME
f77 − Fortran 77 compiler
SYNOPSIS
f77 [ options ] files
DESCRIPTION
F77 is the UNIX Fortran 77 compiler; it accepts several types of files arguments:
- Arguments whose names end with .f are taken to be Fortran 77 source programs; they are compiled and each object program is left in the current directory in a file whose name is that of the source, with .o substituted for .f.
- Arguments whose names end with .r or .e are taken to be RATFOR or EFL source programs, respectively; these are first transformed by the appropriate preprocessor, then compiled by f77, producing .o files.
- In the same way, arguments whose names end with .c or .s are taken to be C or assembly source programs and are compiled or assembled, producing .o files.
The following options have the same meaning as in cc(1) (see ld(1) for link editor options):
−c Suppress link editing and produce .o files for each source file.
−p Prepare object files for profiling (see prof(1)).
−O Invoke an object-code optimizer.
−S Compile the named programs and leave the assembler-language output in corresponding files whose names are suffixed with .s. (No .o files are created.)
−ooutput Name the final output file output, instead of a.out.
−f In systems without floating-point hardware, use a version of f77 that handles floating-point constants and links the object program with the floating-point interpreter.
The following options are peculiar to f77:
−onetrip Compile DO loops that are performed at least once if reached. (Fortran 77 DO loops are not performed at all if the upper limit is smaller than the lower limit.)
−u Make the default type of a variable “undefined”, rather than using the default Fortran rules.
−w Suppress all warning messages. If the option is −w66, only Fortran 66 compatibility warnings are suppressed.
−F Apply EFL and RATFOR preprocessor to relevant files, put the result in files whose names have their suffix changed to .of. (No .o files are created.)
−m Apply the M4 preprocessor to each EFL or RATFOR source file before transforming with the ratfor(1) or efl(1) processors.
−E The remaining characters in the argument are used as an EFL flag argument whenever processing a .e file.
−R The remaining characters in the argument are used as a RATFOR flag argument whenever processing a .r file.
Other arguments are taken to be either link-editor option arguments or f77-compilable object programs (typically produced by an earlier run), or libraries of f77-compilable routines. These programs, together with the results of any compilations specified, are linked (in the order given) to produce an executable program with the default name a.out .
FILES
file.[fresc] input file
file.o object file
a.out linked output
./fort[pid].? temporary
/usr/lib/f77pass1 compiler
/lib/c1 pass 2
/lib/c2 optional optimizer
/usr/lib/libF77.a intrinsic function library
/usr/lib/libI77.a Fortran I/O library
/lib/libc.a C library; see Section 3 of this Manual.
SEE ALSO
A Portable Fortran 77 Compiler by S. I. Feldman and P. J. Weinberger
cc(1), efl(1), ld(1), m4(1), prof(1), ratfor(1).
DIAGNOSTICS
The diagnostics produced by f77 itself are intended to be self-explanatory. Occasional messages may be produced by the link editor ld(1).
May 16, 1980