Silverfrost Forums

Welcome to our forums

under flow with 3GB switch

29 Nov 2006 3:26 #1339

Hi All

further to my previous question on debugging 3GB apps

we are finding a problem with underflows ( and presumably over flows)

here is a test program to illustate the issue

<snip> !****Fails at i=87 on 64 bit machine !*****but finishes on 32 bit machine program testexponential

integer i

do i = 0,100 write (,) i,exp(-1.0*i)

end do

end program </snip>

we are finding that when we run this on a standard pentium 4 XP machine with no 3GB switch turned on. At i = 88 the exponential returns 0.00000 and the loop finishes returning zeros

however on our Intel PWS390 running XP x64 the code just stops at i=87.

we are using the personal edition 4.9

is there some switch we must invoke to get the standard behaviour to happen again. we would very much not like to put lots of catches in legacy the code for this.

gievn the state of our code ie we would like the normal behaivou

Carl

30 Nov 2006 1:05 #1348

Carl

The Win64 underflow problem has already been fixed for FTN95 v5.0 (by default underflow nolonger raises an exception).

There should be no problem with overflow (i.e. by default overflow should raise an exception).

Please login to reply.