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: phys6k@Menudo.UH.EDU (Yan-Song Chen) Subject: Re: gcc vs Dec Unix c Date: 1998/01/13 Message-ID: <69ftrf$1co$1@Masala.CC.UH.EDU>#1/1 X-Deja-AN: 315545517 References: <884291935.1575288842@dejanews.com> <694nm1$74c$1@news2.xs4all.nl> <884364975.2133262340@dejanews.com> <695t9e$kft$1@agate.berkeley.edu> <884411893.151322629@dejanews.com> <884563899.2019688456@dejanews.com> Organization: University of Houston Newsgroups: comp.os.linux.alpha cekim@ix.netcom.com wrote: : Am I giving Intel too much credit here? : : I am not surprised that the alpha is choking a little here, it has a long : way to go to catch up (in linux) to the amount of time that the x86 had : had for tweaking. : : I am very surprised if the difference between the x86 software : implimentation is really that much faster than the alpha implimentation. : The alpha's speed(literaly clock speed) is leaves a 2X-3X window for bad : coding and RISCness yet the alpha is 6X slower in the end? Sounds fishy. : : Oh well, I guess I either nede to use fotran or handcode my math : functions. : : I am very curious now, I would like to hunt through the code and see if : there is an FCOS in there. I would hope there is. : : /Mike : : -------------------==== Posted via Deja News ====----------------------- : http://www.dejanews.com/ Search, Read, Post to Usenet The math library performance of Alpha-Linux has been a serious problem for a long time. It hurts Alpha-Linux's FP performance seriously. But it seems nobody care or nobody able to enhance it. But it is not Alpha chip's fault, Alpha CPU can run cos faster than x86 at SAME CLOCK RATE, I remember with Digital's C compiler and math library, it takes about 100-120 cycles to do cos,(If you don't care the last digit, there is another function can calculate cos in about 60-70 cycles). But the math function in gcc library has very poor performance, I remeber it takes more than 1000 cycles to do cos before. 1)x86 use floating point instruction FCOS to calculate cos function, it is implemented used micro code. Alpha, as a RISC cpu, implement cos as a library function. But it doesn't mean that Alpha does cos slower than x86. With good math library implementation, it is more efficient than a single FCOS instruction. 2)It is Linux's libm slow down the Alpha's FP performance, not the Alpha CPU itself. 3)I think we have two methods to improve Alpha's CPU performance: a) somebody may be able to improve linux libm.a floating point special function's performance. b) Maybe we can push Digital to port it is math library to linux so we can get a commercial version of math library. Alpha is intrinsicly faster than x86, but you have to know how to get its best performance. -- yansong chen -- YChen@uh.edu