From: phys6k@Menudo.UH.EDU (Yan-Song Chen)
Subject: Re: gcc vs Dec Unix c
Date: 1998/01/13 [thread overview]
Message-ID: <69ftrf$1co$1@Masala.CC.UH.EDU> (raw)
In-Reply-To: 884563899.2019688456@dejanews.com
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
next prev parent reply other threads:[~1998-01-13 5:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-08 5:00 gcc vs Dec Unix c fonte
1998-01-09 5:00 ` Jaap Schellekens
1998-01-09 5:00 ` cekim
1998-01-09 5:00 ` Peter Mardahl
1998-01-09 5:00 ` Craig Burley
1998-01-10 5:00 ` cekim
1998-01-10 5:00 ` Craig Burley
1998-01-13 5:00 ` cekim
1998-01-13 5:00 ` Craig Burley
1998-01-13 5:00 ` James Van Buskirk
1998-01-14 5:00 ` brianh
1998-01-14 5:00 ` James Van Buskirk
1998-01-13 5:00 ` [++] x86 FCOS (Was: Re: gcc vs Dec Unix c) Terje Mathisen
1998-01-13 5:00 ` Andy Glew
1998-01-14 5:00 ` Terje Mathisen
1998-01-13 5:00 ` Yan-Song Chen [this message]
1998-01-13 5:00 ` gcc vs Dec Unix c Greg Lindahl
1998-01-15 5:00 ` Lupo LeBoucher
1998-01-15 5:00 ` Greg Lindahl
1998-01-13 5:00 ` Rob Komar
1998-01-14 5:00 ` bmeyer
1998-01-15 5:00 ` cekim
1998-01-14 5:00 ` Donald K.Sinclair
1998-01-14 5:00 ` cekim
1998-01-14 5:00 ` Rob Komar
1998-01-16 5:00 ` Torbjorn Lindgren
1998-01-17 5:00 ` Rob Komar
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Toon Moene
-- strict thread matches above, loose matches on Subject: below --
1998-01-13 5:00 Robert Harley
1998-01-14 5:00 ` cekim
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox