开发者

interprocedural analysis

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜