delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/10/15/09:42:58

Date: Thu 15 Oct 92 09:30:31
From: ronis AT ronis DOT chem DOT mcgill DOT ca (David M. Ronis)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Overflow error under Desqview

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019