Creating a Multifile IPO Executable with xild

The Intel linker, xild, performs the following steps:

The command-line syntax for xild is:

prompt>xild [<options>] <LINK_commandline>

where:

To place the multifile IPO executable in ipo_file, use the option -ofilename, for example:

prompt>xild oipo_file a.o b.o c.o

xild calls Intel compiler to perform IPO for objects containing IR and creates a new list of object(s) to be linked. Then xild calls ld to link the object files that are specified in the new list and produce ipo_file executable specified by the -ofilename option.

Note

The -ipo option can reorder object files and linker arguments on the command line. Therefore, if your program relies on a precise order of arguments on the command line, -ipo can affect the behavior of your program.

Usage Rules

You must use the Intel linker xild to link your application if:

The xild Options

The additional options supported by xild may be used to examine the results of multifile IPO. These options are described in the following table.

Option Description
-ipo_o[file.s] Produces assemblable files for the multifile IPO compilation. You may specify an optional name for the listing file, or a directory (with the backslash) in which to place the file. The default listing name is ipo_out.s.
-ipo_o[file.o] Produces object file for the multifile IPO compilation. You may specify an optional name for the object file, or a directory (with the backslash) in which to place the file. The default object file name is ipo_out.o.
-ipo_fcode-asm Add code bytes to assemblable files
-ipo_fsource-asm Add high-level source code to assemblable files
-ipo_fverbose-asm,
-ipo_fnoverbose-asm
Enable and disable, respectively, inserting comments containing version and options used in the assemblable file for xild