From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,94b6222e337d2ab8 X-Google-Attributes: gid111c93,public From: "Jack W. Crenshaw" Subject: Re: Alpha's floating point performance Date: 1998/11/25 Message-ID: <365CBBD1.455F@magicnet.net>#1/1 X-Deja-AN: 415706454 Content-Transfer-Encoding: 7bit References: <3643A2A1.DECD63A@cs.sunysb.edu> <731iaq$lsc$1@tesla.EECS.Berkeley.EDU> <3659D27F.7782@magicnet.net> <73cabl$2nl$1@tesla.EECS.Berkeley.EDU> <365AD16B.6BB@magicnet.net> <73ekfq$719$1@ppp393.ts.rz.tu-bs.de> Content-Type: text/plain; charset=us-ascii Organization: Crenshaw Technologies Mime-Version: 1.0 Reply-To: jcrens@magicnet.NOSPAM.net Newsgroups: comp.os.linux.alpha Olaf Schnapauff wrote: > > Jack W. Crenshaw wrote: > : Peter Mardahl wrote: > :> > :> Alpha doesn't include any trig functions, nor log, nor exp, but as > :> of 21264 it includes sqrt. > :> > > : Hm. That puts it at a significant disadvantage, performance-wise, from > : the Pentium chip which has all the transcendental functions in the FPU. > > No it doesnt. The idea of RISC cpus is to have little in hardware, to > make those functions it has FAST and the pipelines more effective. > > A CISC cpu like the Intel x86 has more functions in hardware, including > some that are rarely used, which makes all functions slower (in priciple, > as usual the truth is a little more complex). > > (Check out the book of Hennesy/Patterson for more) > > Olaf > > -- Well, the thing is, the C [substitute your favorite language here] compiler has to have a math library with subroutines to calculate the trig functions. I find it hard to believe that one could write a subroutine, with calling list (admittedly, only one argument) and call & return mechanism, that could compete with the Pentium math coprocessor. Then again, maybe one could. As I recall, the Microsoft compiler, at least, does a lot of stuff in software before and after invoking the FPU. Jack