This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]