Intel® Fortran Compiler XE 13.1 User and Reference Guides

Understanding File Extensions

Input File Extensions

The Intel® Visual Fortran Compiler interprets the type of each input file by the file name extension.

The file extension determines whether a file gets passed to the compiler or to the linker. The following types of files are used with the Invoking the Intel® Fortran Compiler:

The most common file extensions and their interpretations are:

Filename

Interpretation

Action

<filename>.a (Linux* OS and OS X*)

<filename>.lib (Windows* OS)

Object library

Passed to the linker.

<filename>.f

<filename>.for

<filename>.ftn

<filename>.i

Fortran fixed-form source

Compiled by the Intel® Visual Fortran compiler.

<filename>.fpp

and on Linux* OS, 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® Visual Fortran compiler.

<filename>.f90

<filename>.i90

Fortran free-form source

Compiled by the Intel® Visual Fortran compiler.

<filename>.F90 (Linux* OS and OS X*)

Fortran free-form source

Automatically preprocessed by the Intel® Fortran preprocessor fpp; then compiled by the Intel® Fortran compiler.

<filename>.s (Linux* OS and OS X*)

<filename>.asm (Windows* OS)

Assembly file

Passed to the assembler.

<filename>.o (Linux* OS and OS X*)

<filename>.obj (Windows* OS)

Compiled object file

Passed to the linker.

When you compile from the command line, you can use the compiler configuration file to specify default directories for input libraries. To specify additional directories for input files, temporary files, libraries, and for the files used by the assembler and the linker, use compiler options that specify output file and directory names.

Output File Extensions (Windows* OS)

On Windows* operating systems, many compiler options allow you to specify the name of the output file being created. These compiler options are summarized in the table below.

If you specify only a filename without an extension, a default extension is added for the file being created.

Compiler option

Default file extension

/Fafile

.ASM

/dll:file

.DLL

/exe:file

.EXE

/map:file

.MAP

See Also


Submit feedback on this help topic