From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,b1738035b01d4980 X-Google-Attributes: gidf4671,public X-Google-Thread: 1070f0,b1738035b01d4980 X-Google-Attributes: gid1070f0,public X-Google-Thread: 1164f8,b1738035b01d4980 X-Google-Attributes: gid1164f8,public X-Google-Thread: 11035d,b1738035b01d4980 X-Google-Attributes: gid11035d,public From: harley@pauillac.inria.fr (Robert Harley) Subject: Re: Why not Solaris on Alpha? Date: 1997/06/10 Message-ID: <5nja0i$jjj@news-rocq.inria.fr>#1/1 X-Deja-AN: 247420404 Distribution: inet Organization: I.N.R.I.A Rocquencourt Newsgroups: comp.unix.solaris,comp.sys.sun.admin,comp.sys.sun.hardware,comp.sys.dec Jake Hamby writes: >[...] I remember talking to a member of the FreeBSD project >[...] he also said that during the process of >investigating a FreeBSD port to Alpha, they discovered that GCC >generates truly horrendous code for Alpha (something on the order of >*half* the speed of DEC's compiler). He was truly surprised that no >Linux users had ever noticed this in all of the time that Linux/Alpha >has been available! Show me. Talk is cheap and spreading bogus memes is even cheaper. I compare code compiled with DEC cc and with GNU gcc all the time. From tiny inner loops in registers, to crunching hundreds of megabytes of floating point numbers, from a hundred cycles to a hundred thousand billion. GCC does most emphatically *not* produce "truly horrendous" code for Alpha. There are codes types for which it is typically 20 or 30% slower and other types for which it is 20 or 30% faster. For little inner loops the differences can be greater. Allow me to grep for "cycles" in a polynomial multiplication program I was just playing with... I wrote a bunch of different functions to do the same time-critical things in different ways and timed them all ("cc -O5 -tune ev5 -migrate" versus "gcc -O4 -funroll-loops", pure ANSI C not using the gcc extensions): /* Average for 64-bit nums: 258 cycles (with cc), 316 (with gcc) */ /* Average for 64-bit nums: 514 cycles (with cc), 270 (with gcc) */ /* Average for 64-bit nums: 362 cycles (with cc), 367 (with gcc) */ /* Average for 64-bit nums: 502 cycles (with cc), 413 (with gcc) */ /* Average for 64-bit nums: 266 cycles (cc), 198 (gcc). */ /* Average for 64-bit nums: 177 cycles (cc), 233 (gcc). */ /* Average for 64-bit nums: 696 cycles! (cc), 194 (gcc). */ /* Average for 64-bit nums: 303 cycles (cc), 219 (gcc). */ This is just one example, but it is reality as opposed to your passing on of rumours heard from scare-mongerers. -- Rob. PS: Bring on them Unix flavour wars! .-. Robert.Harley@inria.fr .-. / \ .-. .-. / \ / \ / \ .-. _ .-. / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / `-' `-' \ / \ / \ \ / `-' `-' \ / `-' Linux - 500MHz Alpha - 256MB SDRAM `-'