From: rsmith@wisp5.physics.wisc.edu (Randall Smith)
Subject: Floating point errors
Date: 21 Jun 1994 19:17:03 GMT [thread overview]
Message-ID: <RSMITH.94Jun21141703@wisp5.physics.wisc.edu> (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
reply other threads:[~1994-06-21 19:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox