From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,564b350d9de0c85c,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,564b350d9de0c85c,start X-Google-Attributes: gid110292,public From: harley@pauillac.inria.fr (Robert Harley) Subject: Re: What Does DEC Have Left? Date: 1997/10/29 Message-ID: <636v77$7ef@news-rocq.inria.fr>#1/1 X-Deja-AN: 285741738 Organization: I.N.R.I.A Rocquencourt Newsgroups: comp.sys.dec,comp.sys.intel Larry Kilgallen (kilgallen@eisner.decus.org) wrote: >Glenn Everhart writes: > >> Once GCC gets properly optimized for Alpha, I'd bet that DEC Unix >> starts getting cannibalized big time by Linux (and freeBSD and...). > >Optimizing GCC for Alpha would seem a lot easier than Optimizing GC >for Merced, based on reports about the instruction set from the recent >conference. I agree. Gcc for Alpha is just fine on integer code but often shows a 30%ish drop in performance compared to Digital's 'cc' on floating point code. Sometimes more, sometimes less. The reason, as far as I can tell, is not a problem with 'gcc' itself but the lack of an 'as' that does proper scheduling. This matters on 21164 because it's in-order with static slotting logic etc. It's worst on code with long latencies and little local parallelism i.e., f.p code written for register-starved machines and "ported" to Alpha with little or no adaptation. Likewise with big-integer arithmetic: gcc "knows about" the 'mulq' instruction and its long latency so pushes it back from where its result is consumed, but doesn't know about 'umulh' so you put it in with 'asm(...)' and it doesn't get moved back. For max speed you have to move it back by hand and use 'asm volatile(...)'. Since similar considerations will apply only more so on Merced, gcc for Merced will probably suck big-time. However since the 21264 Alpha will take care of everything in hardware at run-time, current Alpha code will surely run on it like a bat out of hell! PS: Digital, in the mean time, why not donate source for D.U. 'as' to the Linux community??? =:-) .-. Robert.Harley@inria.fr .-. / \ .-. .-. / \ / \ / \ .-. _ .-. / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / `-' `-' \ / \ / \ \ / `-' `-' \ / `-' Linux + 500MHz Alpha + 256MB SDRAM = heaven `-'