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

question on inline functions used in multiple units

QFang1
Novice
120 Views
Sorry for my ignorance on inline functions. Does icc expand inline functions defined in a different unit (without -ipo of course)? I just realized that gcc does not do this (correct me if I am wrong).

thanks
0 Kudos
2 Replies
JenniferJ
Moderator
120 Views

Same for icc, it only does the inlining expansion in the same unit when no -ipo. You can use -ipoat file level.

Jennifer

QFang1
Novice
120 Views
thanks for the clarification.
Reply