1F77(1)                      General Commands Manual                     F77(1)
2
3
4

NAME

6       f77 - Fortran 77 compiler
7

SYNOPSIS

9       f77 [ option ] ... file ...
10

DESCRIPTION

12       F77 is the UNIX Fortran 77 compiler.  It accepts several types of argu‐
13       ments:
14
15       Arguments whose names end with `.f' are taken to be Fortran  77  source
16       programs;  they  are  compiled,  and each object program is left on the
17       file in the current directory whose name is that  of  the  source  with
18       `.o' substituted for '.f'.
19
20       Arguments  whose  names end with `.r' or `.e' are taken to be Ratfor or
21       EFL source programs, respectively; these are first transformed  by  the
22       appropriate preprocessor, then compiled by f77.
23
24       In  the same way, arguments whose names end with `.c' or `.s' are taken
25       to be C or assembly source programs and are compiled or assembled, pro‐
26       ducing a `.o' file.
27
28       The following options have the same meaning as in cc(1).  See ld(1) for
29       load-time options.
30
31       -c     Suppress loading and produce `.o' files for each source file.
32
33       -p     Prepare object files for profiling, see prof(1).
34
35       -O     Invoke an object-code optimizer.
36
37       -S     Compile the named programs,  and  leave  the  assembler-language
38              output  on  corresponding files suffixed `.s'.  (No `.o' is cre‐
39              ated.).
40
41       -f     Use  a  floating  point  interpreter  (for  PDP11's  that   lack
42              11/70-style floating point).
43
44       -o output
45              Name the final output file output instead of `a.out'.
46
47       The following options are peculiar to f77.
48
49       -onetrip
50              Compile  DO  loops  that are performed at least once if reached.
51              (Fortran 77 DO loops are not performed at all if the upper limit
52              is smaller than the lower limit.)
53
54       -u     Make  the  default  type  of  a variable `undefined' rather than
55              using the default Fortran rules.
56
57       -C     Compile code to check that subscripts are within declared  array
58              bounds.
59
60       -w     Suppress  all  warning  messages.  If the option is `-w66', only
61              Fortran 66 compatibility warnings are suppressed.
62
63       -F     Apply EFL and Ratfor preprocessor to  relevant  files,  put  the
64              result  in  the file with the suffix changed to `.f', but do not
65              compile.
66
67       -m     Apply the M4 preprocessor to  each  `.r'  or  `.e'  file  before
68              transforming it with the Ratfor or EFL preprocessor.
69
70
71       -Ex    Use  the  string  x  as  an EFL option in processing `.e'
72              files.
73
74       -Rx    Use the string x as a Ratfor option  in  processing  `.r'
75              files.
76
77       Other  arguments are taken to be either loader option arguments,
78       or F77-compatible object programs, typically produced by an ear‐
79       lier  run,  or  perhaps  libraries  of  F77-compatible routines.
80       These programs, together with the results  of  any  compilations
81       specified,  are  loaded  (in the order given) to produce an exe‐
82       cutable program with name `a.out'.
83

FILES

85       file.[fresc]      input file
86       file.o            object file
87       a.out             loaded output
88       /usr/lib/f77pass1 compiler
89       /lib/c1           pass 2
90       /lib/c2           optional optimizer
91       /usr/lib/libF77.a intrinsic function library
92       /usr/lib/libI77.a Fortran I/O library
93       /lib/libc.a       C library, see section 3
94

SEE ALSO

96       S. I. Feldman, P. J. Weinberger, A Portable Fortran 77 Compiler
97       prof(1), cc(1), ld(1)
98

DIAGNOSTICS

100       The diagnostics produced by f77 itself are intended to be  self-
101       explanatory.  Occasional messages may be produced by the loader.
102

BUGS

104       The  Fortran 66 subset of the language has been exercised exten‐
105       sively; the newer features have not.
106
107
108
109                                                                        F77(1)
Impressum