Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Why does this code dont work on Alpha?
@ 2000-01-05  5:00 Pete
  2000-01-05  5:00 ` Phillip Helbig
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pete @ 2000-01-05  5:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-01-05  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-05  5:00 Why does this code dont work on Alpha? Pete
2000-01-05  5:00 ` Phillip Helbig
2000-01-05  5:00 ` Joe Mario
2000-01-05  5:00 ` Andreas Krall

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