Bell 32V development
[unix-history] / usr / man / man1 / f77.1
CommitLineData
c1030a02
TL
1.TH F77 1
2.SH NAME
3f77 \- Fortran 77 compiler
4.SH SYNOPSIS
5.B f77
6[ option ] ... file ...
7.SH DESCRIPTION
8.I F77
9is the UNIX Fortran 77 compiler.
10It accepts several types of arguments:
11.PP
12Arguments whose names end with `.f' are taken to be
13Fortran 77 source programs;
14they are compiled, and
15each object program is left on the file in the current directory
16whose name is that of the source with `.o' substituted
17for '.f'.
18.PP
19Arguments whose names end with `.r' or `.e' are taken to be Ratfor or EFL
20source programs, respectively; these are first transformed by the
21appropriate preprocessor, then compiled by f77.
22.PP
23In the same way,
24arguments whose names end with `.c' or `.s' are taken to be C or assembly source programs
25and are compiled or assembled, producing a `.o' file.
26.PP
27The following options have the same meaning as in
28.IR cc (1).
29See
30.IR ld (1)
31for load-time options.
32.TP
33.B \-c
34Suppress loading and produce `.o' files for each source
35file.
36.TP
37.B \-p
38Prepare object files for profiling, see
39.IR prof (1).
40.TP
41.SM
42.B \-O
43Invoke an
44object-code optimizer.
45.TP
46.SM
47.B \-S
48Compile the named programs, and leave the
49assembler-language output on corresponding files suffixed `.s'.
50(No `.o' is created.).
51.TP
52.B \-f
53Use a floating point interpreter (for PDP11's that lack
5411/70-style floating point).
55.TP
56.BR \-o " output"
57Name the final output file
58.I output
59instead of `a.out'.
60.PP
61The following options are peculiar to
62.IR f77 .
63.TP
64.SM
65.BR \-onetrip
66Compile DO loops that are performed at least once if reached.
67(Fortran 77 DO loops are not performed at all if the upper limit is smaller than the lower limit.)
68.TP
69.BR \-u
70Make the default type of a variable `undefined' rather than using the default Fortran rules.
71.TP
72.BR \-C
73Compile code to check that subscripts are within declared array bounds.
74.TP
75.BR \-w
76Suppress all warning messages.
77If the option is `\-w66', only Fortran 66 compatibility warnings are suppressed.
78.TP
79.BR \-F
80Apply EFL and Ratfor preprocessor to relevant files, put the result in the file
81with the suffix changed to `.f', but do not compile.
82.TP
83.BR \-m
84Apply the M4 preprocessor to each `.r' or `.e' file before transforming
85it with the Ratfor or EFL preprocessor.
86.TP
87.TP
88.BI \-E x
89Use the string
90.I x
91as an EFL option in processing `.e' files.
92.TP
93.BI \-R x
94Use the string
95.I x
96as a Ratfor option in processing `.r' files.
97.PP
98Other arguments
99are taken
100to be either loader option arguments, or F77-compatible
101object programs, typically produced by an earlier
102run,
103or perhaps libraries of F77-compatible routines.
104These programs, together with the results of any
105compilations specified, are loaded (in the order
106given) to produce an executable program with name
107`a.out'.
108.SH FILES
109.nf
110.ta \w'/usr/lib/libF77.a 'u
111file.[fresc] input file
112file.o object file
113a.out loaded output
114./fort[pid].? temporary
115/usr/lib/f77pass1 compiler
116/lib/f1 pass 2
117/lib/c2 optional optimizer
118/usr/lib/libF77.a intrinsic function library
119/usr/lib/libI77.a Fortran I/O library
120/lib/libc.a C library, see section 3
121.fi
122.SH "SEE ALSO"
123S. I. Feldman,
124P. J. Weinberger,
125.I
126A Portable Fortran 77 Compiler
127.br
128prof(1), cc(1), ld(1)
129.SH DIAGNOSTICS
130The diagnostics produced by
131.I f77
132itself are intended to be
133self-explanatory.
134Occasional messages may be produced by the loader.
135.SH BUGS
136The Fortran 66 subset of the language has been
137exercised extensively;
138the newer features have not.