Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Christopher C Chimelis <chris@classnet.med.miami.edu>
To: axp-list@redhat.com
Subject: Re: Performance measurements
Date: Wed, 24 Jun 1998 14:12:40 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.3.96.980624141015.22601A-100000@beezer.med.miami.edu> (raw)
In-Reply-To: <Pine.SV4.3.90.980624125856.18458A-100000@gatecoms>


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.

C


  reply	other threads:[~1998-06-24 18:12 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-24  8:51 Performance measurements Martin Kahlert
1998-06-24  9:34 ` Robert Wilhelm
1998-06-24 19:54   ` Xsuse (Gloria X Server) Gavin
1998-06-24 20:50     ` B. James Phillippe
1998-06-24 23:29       ` Chris Ingrassia
1998-06-24 10:32 ` Performance measurements Stefan Schroepfer
1998-06-24 10:48   ` Martin Kahlert
1998-06-24 11:06     ` Martin Høy
1998-06-24 13:46     ` Stefan Schroepfer
1998-06-24 15:00       ` Robert Wilhelm
1998-06-24 15:16         ` Stefan Schroepfer
1998-06-25  7:46         ` Performance measurements (thanks and conclusion) Martin Kahlert
1998-06-24 15:25       ` Performance measurements Fabio Perroni
1998-06-24 15:28     ` Jeff Sturm
1998-06-24 15:59       ` Christopher C Chimelis
1998-06-24 17:19         ` Jeff Sturm
1998-06-24 18:12           ` Christopher C Chimelis [this message]
1998-06-24 19:05             ` Jeff Sturm
1998-06-24 20:38             ` Wes Bauske
1998-06-24 22:30               ` Jeff Sturm
1998-06-25  1:42               ` Richard Henderson
1998-06-25  1:48             ` Richard Henderson
1998-06-25 14:00               ` Jeff Sturm
1998-06-25 16:17                 ` Richard Henderson
1998-06-27 14:30             ` Volker Barthelmann
1998-06-28 16:41               ` Jeff Sturm
1998-06-28 23:01                 ` Volker Barthelmann
1998-06-29 18:11                   ` Jim Paradis
1998-06-29  5:14                 ` jrp
1998-06-24 16:05       ` Stefan Schroepfer
1998-06-24 16:58     ` Wes Bauske
1998-06-24 15:49 ` David S. Miller
     [not found] ` <Pine.GSO.3.96.980624190510.27225p-100000@markab.dbai.tuwien.ac.at>
1998-06-25  7:59   ` Martin Kahlert
1998-06-26  1:26 ` Ryan Kirkpatrick
1998-06-26 14:45   ` Chris Ingrassia
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox