From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3835 invoked from network); 24 Jun 1998 19:07:00 -0000 Received: from gatecoms.gatecom.com (198.87.96.251) by mail2.redhat.com with SMTP; 24 Jun 1998 19:07:00 -0000 Received: (from jsturm@localhost) by gatecoms.gatecom.com (8.8.7/8.8.7) id PAA25189; Wed, 24 Jun 1998 15:05:33 -0400 (EDT) Date: Wed, 24 Jun 1998 15:05:32 -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'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?). Not sure, but I'm running 2.1.105 and it doesn't seem to help. In arch/alpha/math-emu there is some fp emulation code; I'm not real sure yet why it is there. I'll have to do some research I guess... > 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. Yup. I see the code in arch/alpha/kernel/traps.c and a funny comment about a summary bit. I wish I understood what it's doing. I used to feel comfortable doing this kind of hacking on my x86 machine. The alpha makes me feel stupid again... Jeff