Getting Started with the Intel® Fortran Composer XE 2011

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.

  1. Open a terminal session.

  2. Set the environment variables for the compiler.

  3. 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:

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.


Submit feedback on this help topic

Copyright © 2010, Intel Corporation. All rights reserved.