Using the Intel Fortran compiler is a two step process.
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.
- Set the environment variables
- Issue the ifc compiler command
Users of the tcsh shell will need to include the ifcvars.csh file. The command to do this is shown below:
while bash shell users should use the ifcvars.sh file by executing the following command:
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:
This will produce an "a.out" file. To execute the compiled a.out program simply type:
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:
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 firstname.lastname@example.org