From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21491 invoked from network); 24 Jun 1998 20:38:57 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 24 Jun 1998 20:38:57 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 24 Jun 1998 15:39:10 -0500 Received: by paralleldata.com from paralleldata.com (208.252.119.199::mail daemon; unverified,SLMail V2.5); Wed, 24 Jun 1998 15:39:08 -0500 Sender: "Wsb" Message-ID: <359163DD.CFFA9783@paralleldata.com> Date: Wed, 24 Jun 1998 20:38:53 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Performance measurements References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Christopher C Chimelis wrote: > > On Wed, 24 Jun 1998, Jeff Sturm wrote: > > > I'm aware of -mieee and have used it for many applications that would > > otherwise die on SIGFPE. But it is hardly ideal--it seems to slow down > > the benchmark code by a ratio of 3-4. I'm not exactly sure what it does, > > but it seems to add a lot of fp value-checking code. I can do much the > > same by inserting statements in my source code, all at the expense of > > runtime performance. > > Yeah, runtime performance is killed by -mieee. My only guess would be to > implement a kernel-level handler for this (is this covered in the new math > code in later 2.1 kernels?). > > > My real question is why do these programs run on x86 w/o -mieee? GCC on > > x86 just returns NaN or Inf. Trapping errors in hardware sounds a lot > > more efficient to me. I can write a signal handler, but it's hard to > > recover. I'd rather not get the signal at all. > > The x86's handle the exception via hardware, whereas the Alphas apparently > don't (not sure of this...I haven't read the architecture manual in over a > year). > > > BTW I have no problem with MS Visual C++. Code from gcc causes SIGFPE, > > both on Linux and OpenNT. What is it doing differently? > > MSVC++ may have something that it links in to handle these exceptions. I, > personally, would like to see that kinda code added to our kernel if it > isn't there. There was talk of a SIGFPE signal handler being added to the > kernel, but I'm not sure where that went after discussion. > >From what I remember, the Alpha has floating point configuration registers that can be set to do HW traps/fixes but I don't know how to set them. Maybe someone else does?? (Richard or Jay??) Wes