When using mutli-file IPO, can icc optimize across the C and C++ language boundary?

本秂侑毒 提交于 2019-12-13 03:34:05

问题


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.

来源:https://stackoverflow.com/questions/48030795/when-using-mutli-file-ipo-can-icc-optimize-across-the-c-and-c-language-bounda

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!