From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: fp exceptions
Date: Sun, 20 Jun 1999 16:17:13 -0500 [thread overview]
Message-ID: <376D5A59.E107E95F@paralleldata.com> (raw)
In-Reply-To: Pine.LNX.4.10.9906201531500.3721-100000@gutenberg
glenn murphy wrote:
>
> I'm sorry if any of my questions are FAQs. I'm just learning to program,
> and I get a lot of floating point exceptions at runtime with code that
> runs fine on x86 systems. I'm using a 21064 (cabriolet) with RedHat 5.2.
> Is this something specific to the 21064 that I need a compiler option for?
> Is this a problem with egcs 1.0.3 that comes with RHL 5.2? If I upgrade
> egcs, do I need to upgrade all the libs as well? Any help would be
> greatly appreciated.
>
Well, there are a couple things to do. First, run the program
under gdb and see why you get the FP exception. It is quite
likely that you are accessing something you shouldn't be. The
Intels don't show the problem because they force the bad numbers
to zero or FLOATMAX, and happily continue on with the calculation.
Now, sometimes this fixup is quite reasonable to do and so you
let it go but Alphas are a bit more picky in that they expect all
FP values to be normalized. So, it you think the results of your gdb
run/examination are acceptable (meaning you don't want to fix the
code to eliminate the problem) then you might try -mieee to force
the Alphas to slow down and handle the oddball numbers in SW rather
than HW. This still might not work if your FP exception is in a
library routine though, like exp().
Wes
next prev parent reply other threads:[~1999-06-20 23:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-20 20:37 fp exceptions glenn murphy
1999-06-20 21:17 ` Wes Bauske [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-23 18:52 compiling kernel 2.4.3 Uncle George
2001-05-01 3:23 ` FP Exceptions T. Daniel Crawford
2001-05-01 5:30 ` Greg Lindahl
2001-05-01 10:56 ` Uncle George
2001-05-01 11:52 ` T. Daniel Crawford
2001-05-01 12:23 ` Uncle George
2001-05-01 12:26 ` T. Daniel Crawford
2001-05-01 13:03 ` Uncle George
2001-05-02 12:10 ` Uncle George
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