From: Craig Burley <burley@gnu.ai.mit.edu>
Subject: Re: Floating point exception
Date: Sun, 15 Dec 1996 17:21:15 -0500 [thread overview]
Message-ID: <126852ab274bd45478008f16eb2092b4.axp-list@archive.invalid> (raw)
>Anyone know why this program causes a floating point exception on the
>Alpha?
>
>#include <float.h>
>
>int main()
>{
> double a = 4.5;
>
> if(a > DBL_MIN) {
> return 1;
> }
>
> return 0;
>}
My guess is that it's due to DBL_MIN being a denormal (aka subnormal?) and
your system doesn't have the right software (library or OS??) installed to
handle the hardware traps that happen when denormals are encountered.
Happens on my system too, but I have an ancient one. New Craftworks CDs are
sitting on a shelf awaiting a major overhaul of my Alpha and Intel -- I
presume this will make this particular problem, among many others, go
away. ;-)
So, upgrading the Linux OS and libraries (libm.a and libc.a?) on your system
might make this problem disappear after recompiling and relinking.
tq vm, (burley)
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1996-12-15 22:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-15 22:21 Craig Burley [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-12-16 19:21 Floating point exception Przemek Klosowski
[not found] <199612152221.RAA06013@churchy.gnu.ai.mit.edu>
1996-12-16 18:44 ` Jerry Feldman
[not found] <Pine.LNX.3.95.961215124644.26796Q-100000@sexpistols.dontknow.com>
1996-12-15 21:31 ` Paul B. Brown
1996-12-15 22:33 ` David R. McGown
1996-12-16 16:15 ` Richard Henderson
1996-12-15 12:54 Dan McGuirk
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