When using mutli-file IPO, can icc optimize across

2019-08-24 17:30发布

问题:

If multi-file IPO (also commonly known as link-time optimization) is being used with icc, is it possible that code can be optimized across the C and C++ language boundary?

For example, can a C function be inlined into a C++ caller?

This has been tested to work for clang and gcc but the LTO mechanism is somewhat different for icc is somewhat different.

标签: c++ c icc