Turbo C++: F. P. Error: Stack Fault.

Steve Cumming, net.leftist burton at unixg.ubc.ca
Wed Apr 24 01:17:34 AEST 1991



I am porting some software from UNIX to a 286 machine running DOS 3.4.
Some of the code is produced by f2c, then hand hacked by yours truly.

I am compiling with Turbo C++, using -f for software floating point
emulation, and with -ff- to supress floating point optimisation,
for reasons that should become evident.

In addition to the usual trouble, I get floating point exceptions of
the type mentioned in the Subject line. I can find no explanation of
this error in the manual. The error occurs at seemingly random
locations, though probably in the f2c'd code, in which are
large numbers of explicit promotions and demotions from
float to double and back. The occurance and apparent location
of the error is dependent (seemingly) on the number and location
of debug statements which I have scattered throught the code.
Many of these print %f mode values.

The program makes extensive use of the overlay manager, in
case that is important. It also appears to be too large for
the Turbo debugger. Sigh.

Can anyone fill me in on what this error message
is telling me, and suggest constructs I should be looking for?


Many thanks.
--
#include "../h/disclaimer.h"        /* I am not really Phil Burton, btw. */
burton at unixg.ubc.ca		    ... and if dinosaurs "became" birds	
Steve Cumming, a.k.a.			what will we become?   - Anselm Hollow.
			


--
#include "../h/disclaimer.h"        /* I am not really Phil Burton, btw. */
burton at unixg.ubc.ca		    ... and if dinosaurs "became" birds	
Steve Cumming, a.k.a.			what will we become?   - Anselm Hollow.
			



More information about the Comp.lang.c mailing list