From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9615 invoked from network); 25 Jun 1998 14:02:16 -0000 Received: from gatecoms.gatecom.com (198.87.96.251) by mail2.redhat.com with SMTP; 25 Jun 1998 14:02:16 -0000 Received: (from jsturm@localhost) by gatecoms.gatecom.com (8.8.7/8.8.7) id KAA09832; Thu, 25 Jun 1998 10:00:49 -0400 (EDT) Date: Thu, 25 Jun 1998 10:00:49 -0400 (EDT) From: Jeff Sturm X-Sender: jsturm@gatecoms To: axp-list@redhat.com Subject: Re: Performance measurements In-Reply-To: <19980624184830.B12927@dot.cygnus.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 24 Jun 1998, Richard Henderson wrote: > On Wed, Jun 24, 1998 at 02:12:40PM -0400, Christopher C Chimelis wrote: > > 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?). > > No, that bit in the kernel is what fixes up the exceptions raised > by -mieee. For non -mieee code there is no hope of fixing up the > exception. So what good is -mieee? Is it really intended for ill-behaved fp code? (Sorry if this has been covered before. I've seen a lot of comments about programs that must be compiled with -mieee without explaining WHY...) > > > BTW I have no problem with MS Visual C++. Code from gcc causes SIGFPE, > > > both on Linux and OpenNT. What is it doing differently? > > 5 gets you 10 the problem is with the byte benchmarks not initiallizing > its variables properly, and you are getting a NaN or denormal signalled. > It may not be showing up w/ MSVC++ because it randomly had different > initial data. Indeed. I discovered a float array heap-allocated and not initialized. Setting the array to zeros solved the problem. Jeff