开发者

interprocedural analysis

开发者 https://www.devze.com 2023-04-07 17:45 出处:网络
Does gcc (C, C++ and Fortran compilers in particular) support interprocedural analysis to improve performance?

Does gcc (C, C++ and Fortran compilers in particular) support interprocedural analysis to improve performance? If yes, which are the relevant flags?

http://gcc.gnu.org/wiki/InterProced开发者_JS百科ural says the gcc is going to implement IPA, but that page is quite outdated.


Yes, it supports. Take a look at options started with -fipa here. Recent gfortran version (4.5+) supports even more sophisticated type of optimization - link-time optimization (LTO) which is interprocedural optimizations across files. The corresponding compiler flag is -flto.

P.S. I wrote a small series of posts about LTO at my blog. You're welcome! :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消