From: Pete <pete@no-spam.net>
Subject: Why does this code dont work on Alpha?
Date: 2000/01/05 [thread overview]
Message-ID: <84vbos$v43$1@inet-1.pnu.com> (raw)
I wonder why I get
Floating point exception (core dumped)
then I run this very simple C code?
main()
{
float x = 3.14;
long i;
for (i=0;i<1000000000;i++)
x=x*x;
}
It runs fine on both Solaris and Linux. Dont
know why it fails on the 21164-600 (EV56) with
Digital Unix 4.0F and DEC Alpha cc
One strange thing is that if I loop only 10 times
it runs fine, but with 100 or more loops it fails.
- Pete
next reply other threads:[~2000-01-05 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-05 5:00 Pete [this message]
2000-01-05 5:00 ` Why does this code dont work on Alpha? Phillip Helbig
2000-01-05 5:00 ` Joe Mario
2000-01-05 5:00 ` Andreas Krall
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