egcs 1.0.1 and fortran optimization

Vladimir Eltsov ve@boojum.hut.fi
Mon Jan 19 02:45:00 GMT 1998


Hello,

I successfully built and installed egcs-1.0.1 on Linux RedHat-5.0 system
in the fully standard config. Then I compiled my simulation programs: one
in fortran, other in c++ and compared execution times to variants compiled
with g++/g77 2.7.2.3.f.1. Compilation options were '-O3 -m486
-fomit-frame-pointer -ffast-math' for gcc and '-O9 -mpentiumpro
-fomit-frame-pointer -ffast-math' for egcc in both cases (I have
PentiumII). egcs compiler produces correct code, as for execution time I
obtained: C++ program run 42% faster when compiled with egcs (GREAT!
thanks!), but fortran program run 20% _slower_. 

Am I missing some compilation option(s) for egcs g77 compiler or is it
a known problem? (I remember that when I tried one of the first pg77
snapshots situation was the same with several different fortran programs).

Vladimir Eltsov
ve@boojum.hut.fi

PS: I am not on the list, so please CC replies to me.




More information about the Gcc mailing list