Assemblers and Linker

The assemblers and linker you can use are summarized in this table:

Tool

Default

Provided with Intel Fortran Compiler?

Assembler for 32-bit applications

Linux* assembler, as

No

Assembler for Itanium®-based applications

Intel® Itanium® assembler, ias

Yes

Linker

System linker, ld(1)

No

You can specify alternate tool locations and options for preprocessing, compilation, assembly, and linking.

See also Libraries Provided by Intel Fortran.

Assemblers

For 32-bit applications, Linux supplies its own assembler, as.

For Itanium-based applications, use the Itanium assembler, ias.  The following example compiles a Fortran file to an assembly language file, which you can modify as desired. The assembler is then used to create an object file.

  1. Issue a command using the -S option to generate an assembly code file, file.s: ifort -S -c file.f

  2. To assemble the file.s file, call the Itanium® assembler with this command: ias -Nso -p32 -o file.o file.s

In the above command line, the following assembler options are used:

-Nso suppresses the sign-on message.

-p32 enables defining 32-bit elements as relocatable data elements. (This option is available for backward compatibility.)

-o file.o indicates the output object filename.

Linker

The compiler calls the system linker, ld(1), to produce an executable file from the object files.