delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/16/20:57:41

Date: Mon, 16 Mar 1998 17:57:05 -0800 (PST)
Message-Id: <199803170157.RAA24146@adit.ap.net>
Mime-Version: 1.0
To: Fabrice ILPONSE <fabrice AT trash DOT lip6 DOT fr>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: bug "in" rhide

At 02:14  3/16/1998 +0100, Fabrice ILPONSE wrote:
>Hi!!
>
>    When running my prog from inside rhide and when it exits on FPE,
>rhide do not empty the FP stack or something like that so it crashes.
>When trying to run it again, it re-crashes at start up. The third time,
>all is ok!

You are correct in your assumption as to what causes it. Garbage is left in
the FPU registers, causing a crash when they are next accessed. I believe
there is some reason why the program can't clear the FPU on exit, but I've
forgotten it. Search the archives for the thread "Symify crashes in Windows
Dos box", which was a very similar problem. You can work around by calling
`_clear87' before doing any more floating point.

Because of this, it might be a good idea if RHIDE did clear the FPU before
starting (or, when finishing) a program. Robert?

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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