-qpath

Category

Compiler customization

Pragma equivalent

None.

Purpose

Determines substitute path names for XL C/C++ executables such as the compiler, assembler, linker, and preprocessor.

You can use this option if you want to keep multiple levels of some or all of the XL C/C++ executables and have the option of specifying which one you want to use. This option is preferred over the -B and -t options.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--path--=--+-a-+--:--directory_path----------------------><
                 +-b-+                      
                 +-c-+                      
                 +-C-+                      
                 +-d-+                      
                 +-E-+                      
                 +-f-+                      
                 +-I-+                      
                 +-L-+                      
                 +-l-+                      
                 +-m-+                      
                 '-p-'                      

Defaults

By default, the compiler uses the paths for compiler components defined in the configuration file.

Parameters

directory_path
The path to the directory where the alternate programs are located.

The following table shows the correspondence between -qpath parameters and the component executable names:

Parameter Description Executable name
a Assembler as
b Low-level optimizer xlCcode
c Compiler front end xlcentry, xlCentry
C++ only C C++ compiler front end xlCentry
d Disassembler dis
E CreateExportList utility CreateExportList
C++ only f c++filt utility c++filt
I High-level optimizer, compile step ipa
L High-level optimizer, link step ipa
l Linker ld
C++ only m Linkage helper munch
p Preprocessor n/a

Usage

The -qpath option overrides the -F, -t, and -B options.

Note that using the p suboption causes the source code to be preprocessed separately before compilation, which can change the way a program is compiled.

Predefined macros

None.

Examples

To compile myprogram.c using a substitute xlc compiler in /lib/tmp/mine/ enter:
xlc myprogram.c -qpath=c:/lib/tmp/mine/
To compile myprogram.c using a substitute linker in /lib/tmp/mine/, enter:
xlc myprogram.c -qpath=l:/lib/tmp/mine/ 

Related information