From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <126852ab274bd45478008f16eb2092b4.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199612152221.RAA06013@churchy.gnu.ai.mit.edu> Date: Sun, 15 Dec 1996 17:21:15 -0500 From: Craig Burley Subject: Re: Floating point exception >Anyone know why this program causes a floating point exception on the >Alpha? > >#include > >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