gfortran: the good news and the good news

Hans Horn hannes@2horns.com
Thu Nov 5 19:03:00 GMT 2009


Folks,

I've made the jump from gcc3/g77 to gcc4/gfortran on a large C/f77 
quantum chemistry project and like to report great success. Not only 
does the code compile & link (after a few initial burps) but the 
resultant binaries are on average 10% faster while producing identical 
results (that is on my Intel core duo laptop under cygwin/WinXP).

gcc (GCC) 4.3.4 20090804
GNU Fortran (GCC) 4.5.0 20091014

Congrats to y'all!!!

These are the optimization flags I used for fortran (basically carried 
over from g77):

-O3
-fno-strict-aliasing
-Winline
-fexpensive-optimizations
-finline-functions
-finline-limit=100000
-fstrength-reduce
-fgcse
-fgcse-lm
-fgcse-sm
-funroll-loops
-fforce-addr
-fomit-frame-pointer
-malign-double

Are there any I should NOT be using?
Did I omit any important one?

Kindly,
H.




More information about the Fortran mailing list