Developer Guide and Reference

Contents

B

Specifies a directory that can be used to find include files, libraries, and executables.

Syntax

Linux:
-B
dir
macOS:
-B
dir
Windows:
None
Arguments
dir
Is the directory to be used. If necessary, the compiler adds a directory separator character at the end of
dir
.
Default
OFF
The compiler looks for files in the directories specified in your PATH environment variable.
Description
This option specifies a directory that can be used to find include files, libraries, and executables.
The compiler uses
dir
as a prefix.
For include files, the
dir
is converted to
-I/
dir
/include. This command is added to the front of the includes passed to the preprocessor.
For libraries, the
dir
is converted to
-L/
dir
. This command is added to the front of the standard
-L
inclusions before system libraries are added.
For executables, if
dir
contains the name of a tool, such as
ld
or
as
, the compiler will use it instead of those found in the default directories.
The compiler looks for include files in
dir
/include while library files are looked for in
dir
.
On Linux* systems, another way to get the behavior of this option is to use the environment variable
GCC_EXEC_PREFIX
.
Alternate Options
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804