From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,94044dd34ac72fc0 X-Google-Attributes: gidfee84,public From: Jason Patterson Subject: Re: Gnu g77/gcc on DEC ALPHA running DEC UNIX Date: 1997/10/18 Message-ID: <34486EB9.A6069CC0@reflections.com.au>#1/1 X-Deja-AN: 281444799 References: <34462CF3.41C6@whoi.edu> Organization: Digital Reflections Newsgroups: comp.unix.osf.osf1 eddie scheer wrote: > I did a plain installation of gcc and g77 on my Alpha box runnix > DEC UNIX. Programs seem to be about 10x slower than those compiled with > DEC Fortran. Is this to be expected? 10x is probably an exaggeration, right? But yes, the GNU compilers have a lot less powerful optimizers, particularly when it comes to instruction scheduling, which is a key performance factor on the Alpha's and UltraSPARC's, unlike the Pentium Pro, MIPS R10000 or PowerPC 604 all of which do a fair bit of dynamic scheduling. The compiler really has to "spoon feed" the pipelines of the Alpha 21164 and UltraSPARC to get maximum performance, and the relatively poor scheduler in gcc/g++/g77 simply doesn't do that very well. A factor of 2 difference between g77 and DEC's compiler is quite reasonable. Anything more than that is probably a sign of pathological cache behavior (which might also be a compiler issue of a different type :-) JASON PATTERSON jason@reflections.com.au http://www.reflections.com.au/~jason Imagine that CRAY decides to make a personal computer. It contains 16 Alpha based processors executing in parallel, has 800 megabytes of RAM, 9 Gigabytes of disk storage, a resolution of 4096 x 4096 pixels, does 24bit 3D graphics in realtime, relies entirely on voice recognition for input, fits in your shirt pocket and costs $300. What is the first question the computer community asks? "Is it DOS compatible?"