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! :-)
精彩评论