From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,564b350d9de0c85c X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,564b350d9de0c85c X-Google-Attributes: gid110292,public From: billm@cygnus.com (Bill Moyer) Subject: Re: What Does DEC Have Left? Date: 1997/11/01 Message-ID: <63gbnr$juc$1@andros.cygnus.com>#1/1 X-Deja-AN: 286507929 References: <636v77$7ef@news-rocq.inria.fr> Organization: Cygnus Solutions Newsgroups: comp.sys.dec,comp.sys.intel In article <636v77$7ef@news-rocq.inria.fr> harley@pauillac.inria.fr (Robert Harley) writes: > >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??? =:-) This is all correct. However, egcs (the Experimental GNU Compiler System -- see http://www.cygnus.com/egcs) uses haifa for instruction scheduling. The egcs compiler will be released for alpha-linux and alpha-osf RSN .. there're still some bugs to whittle away. If you want to contribute, you can get the pre-release egcs package from the aforementioned URL. -- ttk #include : Not speaking for Cygnus. --