From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23606 invoked from network); 24 Jun 1998 17:20:54 -0000 Received: from gatecoms.gatecom.com (198.87.96.251) by mail2.redhat.com with SMTP; 24 Jun 1998 17:20:54 -0000 Received: (from jsturm@localhost) by gatecoms.gatecom.com (8.8.7/8.8.7) id NAA19579; Wed, 24 Jun 1998 13:19:26 -0400 (EDT) Date: Wed, 24 Jun 1998 13:19:26 -0400 (EDT) From: Jeff Sturm X-Sender: jsturm@gatecoms To: axp-list@redhat.com Subject: Re: Performance measurements In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 24 Jun 1998, Christopher C Chimelis wrote:> > On Wed, 24 Jun 1998, Jeff Sturm wrote: > > I got around 2.7 integer and 2.6 fp. My 533MHz 164SX did 7.8 on integer > > and died with a SIGFPE on fp (why?). Running NT it completed with ~6.8 on > > Try recompiling the Alpha version with the -mieee flag. Chances are, you > have a condition (ie div by zero) that triggers a floating point > exception. That flag should force egcs to include FPE handling code and > will (or should) allow it to run without dying with an FPE. 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. 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. BTW I have no problem with MS Visual C++. Code from gcc causes SIGFPE, both on Linux and OpenNT. What is it doing differently? Jeff