Intel® Fortran Compiler 16.0 User and Reference Guide

Qoption

Passes options to a specified tool.

Architecture Restrictions

Not available on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner)

Syntax

Linux and OS X:

-Qoption,string,options

Windows:

/Qoption,string,options

Arguments

string

Is the name of the tool.

options

Are one or more comma-separated, valid options for the designated tool.

Note that certain tools may require that options appear within quotation marks (" ").

Default

OFF

No options are passed to tools.

Description

This option passes options to a specified tool.

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

string can be any of the following:

IDE Equivalent

None

Alternate Options

None

Example

Examples for Linux* and OS X* systems:

The following example directs the linker to link with an alternative library:

ifort -Qoption,link,-L.,-Lmylib prog1.f

The following example passes a compiler option to the assembler to generate a listing file:

ifort -Qoption,as,"-as=myprogram.lst" -use-asm myprogram.f90

The following option passes an fpp option to the Fortran preprocessor:

ifort -Qoption,fpp,"-fpp=macro=no

Examples for Windows* systems:

The following example directs the linker to create a memory map when the compiler produces the executable file from the source being compiled:

ifort /Qoption,link,/map:prog1.map prog1.f

The following example passes a compiler option to the assembler:

ifort /Quse-asm /Qoption,masm,"/WX" myprogram.f90

The following option passes an fpp option to the Fortran preprocessor:

ifort /Qoption,fpp,"/fpp:macro=no" 

See Also