2011年9月28日 星期三

Fortran Filename extension

http://www.ats.ucla.edu/clusters/common/computing/compilers.htm

Fortran 90/Fortran 77 Commands associated with Compilers

CompilerSerial
* fileName extension, not command used, determines language version (can be changed by command flags)
Parallel
* See the MPI doc.
CommandsFortran 90 fileName extensionsFixed Format fileName extensionsFortran 90Fortran 77
Intelifort.f90 (.F90 preprocessed).f, .for, .ftn (.F, .FOR, .FTN, .FPP preprocessed)mpif90mpf77
GNUgfortran.f90 (.F90 preprocessed).f, .for, .ftn


http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/fortran/lin/compiler_f/bldaps_for/common/bldaps_under_inpext.htm
Filename
Interpretation
Action


filename.f
filename.for
filename.ftn
filename.i
Fortran fixed-form source
Compiled by the Intel® Fortran compiler.
filename.fpp
and, on Linux, filenames with the following uppercase extensions: .FPP.F,.FOR.FTN
Fortran fixed-form source
Automatically preprocessed by the Intel Fortran preprocessor fpp; then compiled by the Intel Fortran compiler.
filename.f90
filename.i90
Fortran free-form source
Compiled by the Intel Fortran compiler.
filename.F90 (Linux OS and Mac OS X)
Fortran free-form source
Automatically preprocessed by the Intel Fortran preprocessor fpp; then compiled by the Intel Fortran compiler.


Filename ExtensionsSource Form/Preprocessing
.f, .fix, .for, .fpp, .ftn
.F, .F77, .FIX, .FOR, .FTN, .FPP, .fpp
Fixed source form
.f08, .f03, .f95, .f90Free source form with INCLUDE lines
.F08, .F03, .F95, .F90Free source form with C preprocessor directives

沒有留言:

張貼留言