|
|
1.1 ! root 1: .TH F2C 1 ! 2: .CT 1 prog_other ! 3: .SH NAME ! 4: f\^2c \(mi Convert Fortran 77 to C ! 5: .SH SYNOPSIS ! 6: .B f\^2c ! 7: [ ! 8: .I option ... ! 9: ] ! 10: .I file ... ! 11: .SH DESCRIPTION ! 12: .I F2c ! 13: converts Fortran 77 source code to C. ! 14: Arguments that end with ! 15: .L .f ! 16: or ! 17: .L .F ! 18: are taken to be ! 19: Fortran 77 source programs; ! 20: each is converted to a C source file in the ! 21: current directory ! 22: whose name is that of the source with ! 23: .L .c ! 24: substituted ! 25: for the final ! 26: .L .f ! 27: or ! 28: .LR .F . ! 29: If no ! 30: .I file ! 31: arguments are given, then ! 32: .I f\^2c ! 33: reads Fortran 77 on its standard input and ! 34: writes the resulting C on its standard output. ! 35: .PP ! 36: The following options have the same meaning as in ! 37: .IR f\^77 (1). ! 38: .TP ! 39: .B -w ! 40: Suppress all warning messages. ! 41: .TP ! 42: .B -w66 ! 43: Suppress Fortran 66 compatibility warnings. ! 44: .TP ! 45: .B -onetrip ! 46: Compile DO loops that are performed at least once if reached. ! 47: (Fortran 77 DO loops are not performed at all if the upper limit is smaller than the lower limit.) ! 48: .TP ! 49: .B -u ! 50: Make the default type of a variable `undefined' rather than using the default Fortran rules. ! 51: .TP ! 52: .B -C ! 53: Compile code to check that subscripts are within declared array bounds. ! 54: .TP ! 55: .B -I2 ! 56: Render INTEGER and LOGICAL as short, ! 57: INTEGER\(**4 as long int. Assume the default \fIlibF77\fR ! 58: and \fIlibI77\fR: allow only INTEGER\(**4 (and no LOGICAL) ! 59: variables in INQUIREs. ! 60: .TP ! 61: .B -U ! 62: Honor the case of variable and external names. Fortran keywords must be in ! 63: .I ! 64: lower ! 65: case. ! 66: .PP ! 67: The following options are peculiar to ! 68: .IR f\^2c . ! 69: .TP ! 70: .B -A ! 71: Use ANSI C constructs. The default is old-style (pre-ANSI) C. ! 72: .TP ! 73: .B -R ! 74: Do not promote REAL functions and operations to DOUBLE PRECISION (as ! 75: .I f\^77 ! 76: does). ! 77: . \".TP ! 78: . \".B -ext ! 79: . \"Complain about f77 extensions. ! 80: .TP ! 81: .B -i2 ! 82: Similar to \f(CW-I2\fR, but assume a modified \fIlibF77\fR and \fIlibI77\fR ! 83: (compiled with \f(CW-Df2c_i2\fR), ! 84: so INTEGER and LOGICAL variables may be assigned in INQUIREs. ! 85: .TP ! 86: .B -a ! 87: Give local variables automatic (rather than static) storage ! 88: unless they appear in a DATA, EQUIVALENCE, or SAVE statement. ! 89: .TP ! 90: .B -r8 ! 91: Promote REAL to DOUBLE PRECISION, COMPLEX to DOUBLE COMPLEX. ! 92: .TP ! 93: .B -z ! 94: Do not implicitly recognize DOUBLE COMPLEX. ! 95: .PP ! 96: The resulting C invokes routines from ! 97: .IR f\^77 's ! 98: support libraries, ! 99: .I libI77 ! 100: and ! 101: .IR libF77 ; ! 102: programs should be loaded by \f(CWf77 \fR... or ! 103: by \f(CWcc \fR...\f(CW -lI77 -lF77 -lm\fR . Calling conventions ! 104: are those of ! 105: .IR f\&77 : ! 106: see the reference below. ! 107: .SH FILES ! 108: .TF /usr/lib/libF77.a ! 109: .TP ! 110: .IB file .[fF] ! 111: input file ! 112: .TP ! 113: .B *.c ! 114: output file ! 115: .TP ! 116: .F /usr/include/f2c.h ! 117: header file ! 118: .TP ! 119: .F /usr/lib/libF77.a ! 120: intrinsic function library ! 121: .TP ! 122: .F /usr/lib/libI77.a ! 123: Fortran I/O library ! 124: .TP ! 125: .F /lib/libc.a ! 126: C library, see section 3 ! 127: .SH "SEE ALSO" ! 128: S. I. Feldman and ! 129: P. J. Weinberger, ! 130: `A Portable Fortran 77 Compiler', ! 131: this manual, Volume 2 ! 132: .SH DIAGNOSTICS ! 133: The diagnostics produced by ! 134: .I f\^2c ! 135: are intended to be ! 136: self-explanatory. ! 137: .SH BUGS ! 138: Floating-point constants of over 17 significant digits are rounded to 17 ! 139: significant digits.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.