Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

Recompile Libraries?

vrennert
Beginner
138 Views
Is it recomendable to recompile the dependent libraries of a project with ICC in order to gain performance improvement across all steps or doesn't this make any diffrence when i am compiling only the target project with ICC?

Regards
Viktor
0 Kudos
2 Replies
mecej4
Black Belt
138 Views
If (i) the code in the libraries gets pulled into the executable by the linker, (ii) the executable spends a significant fraction of its run time in the library code, and (iii) the library code is not already optimized: definitely yes.
JenniferJ
Moderator
138 Views
Yes, it is the right thing to do. And icc is compatible with other compilers like gcc or VC, so it is supported as well.

Jennifer
Reply