Development Reference Guides

Contents

Create a Library from IPO Objects

Libraries are often created using a library manager such as
xiar
for Linux or
xilib
for Windows. Given a list of objects, the library manager will insert the objects into a named library to be used in subsequent link steps.

Linux

Use
xiar
to create a library from a list of objects. For example the following command creates a library named
user.a
containing the
a.o
and
b.o
objects:
xiar cru user.a a.o b.o
Using
xiar
is the same as specifying
xild -lib
.

Windows

Use
xilib
or
xilink -lib
to create libraries of IPO mock object files and link them on the command line.
For example:
  1. Assume that you create three mock object files using a command similar to:
    icx /c /Qipo a.cpp b.cpp c.cpp
  2. Further assume
    a.obj
    contains the main subprogram. Create a library with a command similar to:
    xilib -out:main.lib b.obj c.obj
    or
    xilink -lib -out:main.lib b.obj c.obj
  3. Link the library and the main program object file with a command similar to:
    xilink -out:result.exe a.obj main.lib

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.