From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7744da37a4fb6b38,start X-Google-Attributes: gid1164f8,public From: Pete Subject: Why does this code dont work on Alpha? Date: 2000/01/05 Message-ID: <84vbos$v43$1@inet-1.pnu.com>#1/1 X-Deja-AN: 568610593 Organization: none User-Agent: tin/pre-1.4-19990927 ("Nine While Nine") (UNIX) (SunOS/5.6 (sun4u)) Newsgroups: comp.sys.dec 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