Developer Guide and Reference

Contents

Linking Tools and Options

This topic describes how to use the Intel® linking tools,
xild
(Linux* and
macOS*
)
and
xilink
(Windows*)
.
The Intel® linking tools behave differently on different platforms. The following sections summarize the primary differences between linking behavior.
Linux* and
macOS*
Linking Behavior Summary
The linking tool invokes the Intel®
C++
Compiler to perform IPO if objects containing
IR
(intermediate representation) are found. These are mock objects. The tool invokes GNU
ld
to link the application.
The command-line syntax for
xild
is the same as that of the GNU linker:
xild [<options>] <normal command-line>
where:
  • [<options>]
    : One or more options supported only by
    xild
    (optional).
  • <normal command-line>
    : Linker command line containing a set of valid arguments for
    ld
    .
To create the file
app
using IPO, use the option
o
[filename]
as shown in the following example:
xild
-qipo-fas
-oapp a.o b.o c.o
The linking tool calls the compiler to perform IPO for objects containing IR and creates a new list of object(s) to be linked. The linker then calls
ld
to link the object files that are specified in the new list and produce the application with the name specified by the
o
option. The linker supports the
ipo
[
n
] option
and
ipo-separate
option
.
To display a list of the supported link options from
xild
, use the following command:
$ xild -qhelp