From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23106 invoked from network); 27 Jun 1998 14:33:52 -0000 Received: from vb.franken.de (193.174.2.34) by mail2.redhat.com with SMTP; 27 Jun 1998 14:33:52 -0000 Received: from localhost (volker@localhost) by vb.franken.de (8.8.4/8.8.4) with SMTP id QAA05306 for ; Sat, 27 Jun 1998 16:30:32 +0200 Date: Sat, 27 Jun 1998 16:30:32 +0200 (CEST) From: Volker Barthelmann 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?). This should basically be a compiler-problem. AFAIK gcc currently just inserts trap-barriers directly after every instruction that might cause an exception therefore stalling the pipelines. By trying to avoid reusing of the registers involved for some time and moving the trap-barrier or eliminating it, the speed-penalty could probably be reduced for the most part. Volker