By default, the compiler generates executable file(s) of the input file(s) and performs the following actions:
Searches for all files, including library files, in the current directory
Searches for any library files in directories specified by the LIB variable, if they are not found in the current directory.
Passes options designated for linking as well as user-defined libraries to the linker
Displays error and warning messages
Supports the extended ANSI standard for the Fortran language.
Performs default optimization using the default -O2 option, as described in Optimization-level Options.
For IA-32 applications, the compiler uses use -tpp6 option to optimize the code for the Pentium Pro®, Pentium® II, and Pentium III processors.
For unspecified options, the compiler uses default settings or takes no action. If the compiler cannot process a command-line option, that option is passed to the linker.
For the libraries provided with Intel® Fortran Compiler, see IA-32 compiler libraries list and Itanium compiler libraries list.
The default tools are summarized in the table below.
Tool |
Default |
Provided with Intel Fortran Compiler |
IA-32 Assembler |
Linux Assembler, as |
No |
Itanium(TM) Assembler |
Intel® Itanium(TM) Assembler |
Yes |
Linker |
|
No |
You can specify alternate to default tools and locations for preprocessing, compilation, assembly, and linking.
By default, the compiler generates an object file directly without calling the assembler. However, if you need to use specific assembly input files and then link them with the rest of your project, you can use an assembler for these files.
IA-32 Applications
For 32-bit applications, Linux supplies its own assembler, as. For Itanium-based applications, to compile to assembly files and then use an assembler to produce executables, use the Itanium assembler, ias.
Itanium-based Applications
If you need to assemble specific input files and link them to the rest of your project object files, produce object files using Intel® Itanium(TM) assembler with ias command. For example, if you want to link some specific input file to the Fortran project object file, do the following:
1. Issue command using -S option to generate assembly code file, file.s.
prompt>efc -S -c file.f
2. To assemble the file.s file, call Itanium(TM) assembler with this command:
prompt>ias -c -coff file.s
The above command generates an object file which you can link with the Fortan object file of the whole project.
The compiler calls the system linker, ld(1), to produce an executable file from object files. The linker searches the environment variable LD_LIBRARY_PATH to find available libraries.