* Floating point errors
@ 1994-06-21 19:17 Randall Smith
0 siblings, 0 replies; only message in thread
From: Randall Smith @ 1994-06-21 19:17 UTC (permalink / raw)
I'm trying to run a floating-point intensive program, and having a
problem with the Alpha bombing out on floating-point errors,
specifically overflow errors. The code runs OK if I
compile it with
/usr/ucb/cc -ieee_with_no_inexact
but when I compile with gcc v2.5.8, I get floating overflow, core
dump. What I'd like is some method of turning ON floating-point core
dumps for INVALID or DIVIDEBYZERO results, but ignoring them on
OVERFLOW or UNDERFLOW.
I've tried the following:
fp_control = IEEE_TRAP_ENABLE_INV & IEEE_TRAP_ENABLE_DZE;
ieee_set_fp_control(fp_control);
which doesn't seem to do anything for me, that I can tell. I would
like to use gcc if possible, and it seems like there should be _some_
way of duplicating the effect of -ieee_with_no_inexact.
Could some kind soul point me in the direction of the right system
call to convince the Alpha not to dump on an over- or under- flow?
The man pages just haven't helped me that much with this one.
Thanks much,
Randy Smith
rsmith@wisp5.physics.wisc.edu
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-06-21 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-06-21 19:17 Floating point errors Randall Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox