This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
impressive lto results
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: fortran at gcc dot gnu dot org
- Date: Sat, 15 Jan 2011 00:55:15 -0500
- Subject: impressive lto results
Looking for some test code to check the current -fwhole-file optimization
in gcc 4.6's gfortran, I decided to test the fortran version of athena3d.
The optimization results are pretty impressive. Comparing builds of...
./buildathena --prob=rayleigh-taylor --type=serial --fluid=hydro --therm=ad
with '-Ofast -flto' to one with '-Ofast -flto -fwhole-program', I see a
reduction in the executable size from...
-rwxr--r-- 1 howarth howarth 435264 Jan 15 00:19 athena3d
to
-rwxr--r-- 1 howarth howarth 236152 Jan 15 00:33 athena3d
with a significant performance increase as well. Nice.
Jack