Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

interprocedural analysis

Tags:

gcc

gfortran

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/InterProcedural says the gcc is going to implement IPA, but that page is quite outdated.

like image 959
user39533 Avatar asked Sep 21 '26 01:09

user39533


1 Answers

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! :-)

like image 118
Wildcat Avatar answered Sep 23 '26 19:09

Wildcat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!