Specifying Alternate Tools and Locations

The Intel® Fortran Compiler lets you specify alternate to default tools and locations for preprocessing, compilation, assembly, and linking. Further, you can invoke options specific to your alternate tools on the command line. This functionality is provided by -Qlocation and -Qoption.

Specifying an Alternate Component
(-Qlocation,tool,path)

-Qlocation enables to specify the pathname locations of supporting tools such as the assembler, linker, preprocessor, and compiler. This option's syntax is:

-Qlocation,tool,path

tool

Designates one or more of these tools:

fpp    Intel Fortran preprocessor
f  
    Fortran compiler (f90com)
asm
   IA-32 assembler
ias
   Itanium assembler
link
 Linker (ld(1))

path

The location of the component.

Example:

prompt>ifc -Qlocation,fpp,/usr/preproc myprog.f

Passing Options to Other Tools (-Qoption,tool,opts)

-Qoption passes an option specified by opts to a tool, where opts is a comma-separated list of options. The syntax for this option is:

-Qoption,tool,opts

tool

Designates one or more of these tools:

fpp    Intel Fortran preprocessor
f  
    Fortran compiler (f90com)
link
 Linker (ld(1))

opts

Indicates one or more valid argument strings for the designated program.

If the argument contains a space or tab character, you must enclose the entire argument in quotation characters (" "). You must separate multiple arguments with commas.

The following example directs the linker to create a memory map when the compiler produces the executable file from the source for respective targeted compilations.

IA-32 applications:

prompt>ifc  -Qoption,link,-map,prog1.map prog1.f

Itanium(TM)-based applications:

prompt>efc -Qoption,link,-map,prog1.map prog1.f