The Intel® Fortran Compiler XE 12.0 compiles Fortran source files on Linux* operating systems. The compiler is supported on IA-32 and Intel® 64 architectures. The compiler operates only from a command line on Linux* operating systems.
Open a terminal session.
Set the environment variables for the compiler.
Invoke the compiler.
One way to set the environment variables prior to invoking the compiler is to "source" the compiler environment script, compilervars.sh (or compilervars.csh):
source <install-dir>/bin/compilervars.sh <arg>
where <install-dir> is the directory structure containing the compiler /bin directory, and <arg> is the architecture argument listed below.
The environment script takes an argument based on architecture. Valid arguments are as follows:
ia32: Compiler and libraries for IA-32 architectures only
intel64: Compiler and libraries for Intel® 64 architectures only
To compile Fortran source files, use a command similar to the following:
ifort my_source_file.f90
Following successful compilation, an executable is created in the current directory.
Copyright © 2010, Intel Corporation. All rights reserved.