f77(1) f77(1)
NAME
f77 - FORTRAN 77 compiler
SYNOPSIS
f77 [-1] [-66] [-c] [-C] [-E] [-f] [-F] [-g] [-I[24s]] [-m]
[-ooutput] [-O] [-onetrip] [-p] [-R] [-S] [-u] [-U] [-w]
files
DESCRIPTION
F77 is the Fortran 77 compiler; it accepts several types of
file 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 flag options have the same meaning as in cc(1)
(see ld(1) for link editor flag 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.
-g Generate additional information needed for the
use of sdb(1)
The following flag options are peculiar to f77:
-onetrip Perform all DO loops at least once. (Fortran 77
DO loops are not performed at all if the upper
Page 1 (last mod. 1/16/87)
f77(1) f77(1)
limit is smaller than the lower limit.)
-1 Same as -onetrip.
-66 Suppress extensions which enhance Fortran 66
compatibility.
-C Generate code for run-time subscript range-
checking.
-I[24s] Change the default size of integer variables
(only valid on machines where the normal integer
size is not equal to the size of a single
precision real). -I2 causes all integers to be
2-byte quantities, -I4 (default) causes all
integers to be 4-byte quantities, and -Is
changes the default size of subscript
expressions (only) from the size of an integer
to 2 bytes.
-U Do not "fold" cases. F77 is normally a no-case
language (i.e., a is equal to A). The -U flag
option causes f77 to treat upper and lower cases
separately.
-u Make the default type of a variable undefined,
rather than using the default Fortran rules.
-w Suppress all warning messages. If the flag
option is -w66, only Fortran 66 compatibility
warnings are suppressed.
-F Apply EFL and RATFOR preprocessor to relevant
files and 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 link editor flag option
arguments, 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
/usr/bin/f77
file.[fresc] input file
file.o object file
a.out linked output
./fort[pid].? temporary
/usr/lib/f77pass1 compiler
Page 2 (last mod. 1/16/87)
f77(1) f77(1)
/lib/f1 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 Oreo
Programmer's Reference.
SEE ALSO
asa(1), cc(1), efl(1), fsplit(1), ld(1), m4(1), prof(1),
ratfor(1), sdb(1).
``f77 Reference'' in the Oreo Programming Languages and
Tools, Volume 2.
DIAGNOSTICS
The diagnostics produced by f77 itself are self-explanatory.
Occasional messages may be produced by the link editor
ld(1).
Page 3 (last mod. 1/16/87)