From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b79a29863eb727e7 X-Google-Attributes: gid111c93,public From: Donald K.Sinclair Subject: Re: gcc vs Dec Unix c Date: 1998/01/14 Message-ID: <69h2g1$s4t@milo.mcs.anl.gov>#1/1 X-Deja-AN: 315706971 References: 884291935.1575288842@dejanews.com> <694nm1$74c$1@news2.xs4all.nl> <884364975.2133262340@dejanews.com> Organization: Argonne National Laboratory Newsgroups: comp.os.linux.alpha I decided to try your test on my 600Mhz Alpha PC164LX in fortran rather than C. I performed the test in both 32 and 64 bit precision. The 64 bit version of the code I ran (costest.f) was: real*8 x,y x=1.2345d0 y=0.567d0 do 1 n=1,100000000 x=x+0.001d0 y=y+dcos(x) 1 continue write(6,*) y stop end I compiled it using both the egcs-1.0 g77, and the Microway NDP fortran compilers using respectively: g77 -O5 costest.f and mf77 -O5 -fastlib contest.f The egcs/g77 code took 50.7 seconds to execute in 32bit arithmetic and 51.4 seconds in 64 bit arithmetic (does this mean that their 32bit cos routine actually uses the 64bit routine?). The Microway NDP code took 15.5 seconds to execute in 32bit arithmetic and 29.2 seconds in 64bit arithmetic. Perhaps the suggestion made by others that fortran is the language of choice is correct. Don Sinclair.