f77(1) f77(1)NAME f77 - Fortran 77 compiler SYNOPSIS f77 [-1] [-66] [-A factor] [-c] [-C] [-E] [-f] [-F] [-g] [-I[24s]] [-m] [-ooutput] [-O] [-onetrip] [-p] [-R] [-S] [-u] [-U] [-w] file ... DESCRIPTION f77 is the Fortran 77 compiler; it accepts several types of file arguments: Arguments whose names end with .f are taken to be For- tran 77 source programs; they are compiled and each ob- ject program is left in the current directory in a file whose name is that of the source, with .o substituted for .f. However, if a single Fortran source program is compiled and loaded all at one time, the .o file is deleted. By default, the process produces an execut- able file, named a.out, in the current directory Arguments whose names end with .r or .e are taken to be EFL source programs; these are first transformed by the EFL 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): -A factor Expand the default symbol table allocations for the assembler and link editor. The default al- location is multiplied by the factor given. -c Suppress link editing and produce .o files for each source file. -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) -ooutput Name the final output file output, instead of a.out. -O Invoke an object code optimizer. -p Prepare object files for profiling (see prof(1)). -S Compile the named programs and leave the assem- bler language output in corresponding files whose names are suffixed with .s. (No .o files April, 1990 1
f77(1) f77(1)are created.) The following flag options are specific to f77: -onetrip Perform all DO loops at least once. (Fortran 77 DO loops are not performed at all if the upper limit is smaller than the lower limit.) -1 Same as -onetrip. -66 Compile as a Fortran 66 program. -C Generate code for run-time subscript range- checking. -E The remaining characters in the argument are used as an EFL flag argument whenever processing a .e file. -F Apply EFL preprocessor to relevant files and put the result in files whose names have their suf- fix changed to .of. (No .o files are created.) -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 preci- sion real). -I2 causes all integers to be 2- byte quantities, -I4 (default) causes all in- tegers to be 4-byte quantities, and -Is changes the default size of subscript expressions (only) from the size of an integer to 2 bytes. -m Apply the M4 preprocessor to each EFL source file before transforming with the efl(1) proces- sor. -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 op- tion is -w66, only Fortran 66 compatibility warnings are suppressed. Other arguments are taken to be link editor flag option ar- guments, f77-compatible object programs (typically produced by an earlier run), or libraries of f77-compatible routines. These programs, together with the results of any compila- tions 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/f77comp compiler 2 April, 1990
f77(1) f77(1)/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 in A/UX Programmer's Reference. SEE ALSO asa(1), cc(1), efl(1), fpr(1), fsplit(1), ld(1), m4(1), prof(1), sdb(1). ``f77 Reference'' in A/UX Programming Languages and Tools, Volume 1. DIAGNOSTICS The diagnostics produced by f77 itself are self-explanatory. Occasional messages may be produced by the link editor ld(1). April, 1990 3