4.3) Intel: Basic Compilation (cont'd)
The Intel Fortran compiler can accessed via the command ifort:
$ ifort[options] file1 [file2 ...]
Where options represents zero or more compiler options, and fileN represents source, assembly, object or other linkable file. For example:
$ ifort -o hello hello.f90
will compile the source file hello.f90 and put the output in hello. The default output filename is a.out.
To execute the program use:
$ ./hello
Note that filename with the suffix .f90 are interpreted as free-form Fortran 95/90 source files and those with suffix .f, .for, or .ftn are interpreted as fixed-form Fortran source files.