⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f2c.1t

📁 把fortran语言编的程序转为c语言编的程序, 运行环境linux
💻 1T
字号:
. \" Definitions of F, L and LR for the benefit of systems. \" whose -man lacks them....de F.nh.if n \%\&\\$1.if t \%\&\f(CW\\$1\fR.hy 14...de L.nh.if n \%`\\$1'.if t \%\&\f(CW\\$1\fR.hy 14...de LR.nh.if n \%`\\$1'\\$2.if t \%\&\f(CW\\$1\fR\\$2.hy 14...TH F2C 1.CT 1 prog_other.SH NAMEf2c \- Convert Fortran 77 to C or C++. \" f\^2c changed to f2c in the previous line for the benefit of. \" people on systems (e.g. Sun systems) whose makewhatis cannot. \" cope with troff formatting commands..SH SYNOPSIS.B f\^2c[.I option ...].I file ....SH DESCRIPTION.I F2cconverts Fortran 77 source code in.I fileswith names ending in.L .for.L .Fto C (or C++) source files in thecurrent directory, with.L .csubstitutedfor the final.L .for.LR .F .If no Fortran files are named,.I f\^2creads Fortran from standard input andwrites C on standard output..I Filenames that end with.L .por.L .Pare taken to be prototypefiles, as produced by option.LR -P ,and are read first..PPThe following options have the same meaning as in.IR f\^77 (1)..TP.B -CCompile code to check that subscripts are within declared array bounds..TP.B -I2Render INTEGER and LOGICAL as short,INTEGER\(**4 as long int.  Assume the default \fIlibF77\fRand \fIlibI77\fR:  allow only INTEGER\(**4 (and no LOGICAL)variables in INQUIREs.  Option.L -I4confirms the default rendering of INTEGER as long int..TP.BI -I dirLook for a non-absolute include file first in the directory of thecurrent input file, then in directories specified by \f(CW-I\fPoptions (one directory per option).  Options\f(CW-I2\fP and \f(CW-I4\fPhave precedence, so, e.g., a directory named \f(CW2\fPshould be specified by \f(CW-I./2\fP ..TP.B -onetripCompile DO loops that are performed at least once if reached.(Fortran 77 DO loops are not performed at all if the upper limit is smaller than the lower limit.).TP.B -UHonor the case of variable and external names.  Fortran keywords must be in.Ilowercase..TP.B -uMake the default type of a variable `undefined' rather than using the default Fortran rules..TP.B -wSuppress all warning messages, or, if the option is.LR -w66 ,just Fortran 66 compatibility warnings..PPThe following options are peculiar to.IR f\^2c ..TP.B -AProduce.SM ANSIC.Default is old-style C..TP.B -aMake local variables automatic rather than staticunless they appear in a.SM "DATA, EQUIVALENCE, NAMELIST,"or.SM SAVEstatement..TP.B -C++Output C++ code..TP.B -cInclude original Fortran source as comments..TP.BI -d dirWrite.L .cfiles in directory.I dirinstead of the current directory..TP.B -EDeclare uninitialized.SM COMMONto be.B Extern(overridably defined in.F f2c.has.B extern)..TP.B -ecPlace uninitialized.SM COMMONblocks in separate files:.B COMMON /ABC/appears in file.BR abc_com.c .Option.LR -e1cbundles the separate filesinto the output file, with comments that give an unbundling.IR sed (1)script..TP.B -extComplain about.IR f\^77 (1)extensions..TP.B -fAssume free-format input: accept text after column 72 and do notpad fixed-format lines shorter than 72 characters with blanks..TP.B -72Treat text appearing after column 72 as an error..TP.B -gInclude original Fortran line numbers in \f(CW#line\fR lines..TP.B -hEmulate Fortran 66's treatment of Hollerith: try to align character strings onword (or, if the option is.LR -hd ,on double-word) boundaries..TP.B -i2Similar to.BR -I2 ,but assume a modified.I libF77and.I libI77(compiled with.BR -Df\^2c_i2 ),so.SM INTEGERand.SM LOGICALvariables may be assigned by.SM INQUIREand array lengths are stored in short ints..TP.B -krUse temporary values to enforce Fortran expression evaluationwhere K&R (first edition) parenthesization rules allow rearrangement.If the option is.LR -krd ,use double precision temporaries even for single-precision operands..TP.B -PWrite a.IB file .Pof ANSI (or C++) prototypesfor definitions in each input.IB file .for.IB file .F .When reading Fortran from standard input, write prototypesat the beginning of standard output.  Option.B -Psimplies.B -Pand gives exit status 4 if rerunning.I f\^2cmay change prototypes or declarations..TP.B -pSupply preprocessor definitions to make common-block memberslook like local variables..TP.B -RDo not promote.SM REALfunctions and operations to.SM DOUBLE PRECISION.Option.L -!Rconfirms the default, which imitates.IR f\^77 ..TP.B -rCast values of REAL functions (including intrinsics) to REAL..TP.B -r8Promote.SM REALto.SM DOUBLE PRECISION, COMPLEXto.SM DOUBLE COMPLEX..TP.B -sPreserve multidimensional subscripts.  Suppressed by option.L -C\&..TP.BI -T dirPut temporary files in directory.I dir..TP.B -w8Suppress warnings when.SM COMMONor.SM EQUIVALENCEforces odd-word alignment of doubles..TP.BI -W nAssume.I ncharacters/word (default 4)when initializing numeric variables with character data..TP.B -zDo not implicitly recognize.SM DOUBLE COMPLEX..TP.B -!bsDo not recognize \fIb\fRack\fIs\fRlash escapes(\e", \e', \e0, \e\e, \eb, \ef, \en, \er, \et, \ev) in character strings..TP.B -!cInhibit C output, but produce.B -Poutput..TP.B -!IReject.B includestatements..TP.B -!i8Disallow.SM INTEGER*8..TP.B -!itDon't infer types of untyped.SM EXTERNALprocedures from use as parameters to previously defined or prototypedprocedures..TP.B -!PDo not attempt to infer.SM ANSIor C++prototypes from usage..PPThe resulting C invokes the support routines of.IR f\^77 ;object code should be loaded by.I f\^77or with.IR ld (1)or.IR cc (1)options.BR "-lF77 -lI77 -lm" .Calling conventionsare those of.IR f\&77 :see the reference below..br.SH FILES.TP.nr )I 1.75i.IB file .[fF]input file.TP.B *.coutput file.TP.F /usr/include/f2c.hheader file.TP.F /usr/lib/libF77.aintrinsic function library.TP.F /usr/lib/libI77.aFortran I/O library.TP.F /lib/libc.aC library, see section 3.SH "SEE ALSO"S. I. Feldman andP. J. Weinberger,`A Portable Fortran 77 Compiler',\fIUNIX Time Sharing System Programmer's Manual\fR,Tenth Edition, Volume 2, AT&T Bell Laboratories, 1990..SH DIAGNOSTICSThe diagnostics produced by.I f\^2care intended to beself-explanatory..SH BUGSFloating-point constant expressions are simplified inthe floating-point arithmetic of the machine running.IR f\^2c ,so they are typically accurate to at most 16 or 17 decimal places..brUntypable.SM EXTERNALfunctions are declared.BR int .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -