Intel Fortran Compiler for Linux

Using the Intel Fortran compiler is a two step process.

  1. Set the environment variables
  2. Issue the ifc compiler command
The first step will add and update variables to your current shell allowing the compiler to find additional libraries. This can be done by "sourcing" a file that has all the necessary variables included. The filename used to update your environment varies depending on your Linux shell.

Users of the tcsh shell will need to include the ifcvars.csh file. The command to do this is shown below:
source /usr/local/bin/ifcvars.csh

while bash shell users should use the ifcvars.sh file by executing the following command:
source /usr/local/bin/ifcvars.sh

Now that the first step is complete all that's left to do is issue the compiler command. At the same shell prompt issue the ifc command followed by the filename of your fortran source code. For example:

ifc filename.f

This will produce an "a.out" file. To execute the compiled a.out program simply type:

./a.out

The online man pages are also available with detailed information on Intel's ifc compiler and idb debugger. To access the man pages from your Linux shell prompt type:

man ifc
or
man idb

For more information please see the complete Intel Fortran user's guide.

These are the basic steps that allow you to quickly start programming using Intel's Fortran compiler for Linux.


Last modified: Tuesday, 03-Jun-2003 11:02:14 EDT
root@wpi.edu

[WPI Homepage] [CCC]