Most applications use a makefile or something similar to call a linker such as link. This is done automatically when you compile and link with the compiler. Therefore, when -ipo must result in a separate linking step, you must use the Intel linker driver xild instead, as follows:
prompt>xild -ipo link_command_line
-ipo | optional; enables additional IPO diagnostic output |
link_command_line | is your linker command line |
Use of -ipo is optional with xild for Multifile IPO in providing additional diagnostic output. You can use the xild syntax when you use a makefile instead of step 2 in the example Creating a Multifile IPO Executable. The following example places the multifile IPO executable in file name:
prompt>xild -o:filename a.o b.o c.o
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 cause your program to have incorrect behavior.