Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

question on inline functions used in multiple units

QFang1
Novice
216 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
216 Views

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

Jennifer

0 Kudos
QFang1
Novice
216 Views
thanks for the clarification.
0 Kudos
Reply