Mail Archives: djgpp/1992/10/15/09:42:58
Yesterday I asked about floating point errors causing desqview to
hang. Here is a small program which reproduces the problem. I
compiled it with
gcc -O2 -funroll-loops -o test test.c
followed by
aout2exe test.
If I run outside of desqview (but with QEMM installed) I get
Exception 117. Inside desqview the system hangs.
==============================test.c==================================
/*
The overflow will cause Desqview to hang.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main()
{
double t=1.0;
int i=1;
while(i<=10)
printf("%2d. %26.16lg\n",i++,t=sinh(t));
exit(0);
}
======================================================================
Thanks in advance.
David Ronis
- Raw text -