* Floating Exceptions
@ 1999-09-01 12:27 hurlebau
1999-09-01 14:50 ` Greg Lindahl
0 siblings, 1 reply; 3+ messages in thread
From: hurlebau @ 1999-09-01 12:27 UTC (permalink / raw)
To: axp-list
I'm using Redhat Linux 5.2 on a AXP-Alpha and have problems with
floating exceptions. I'm using CPML which prevents some
floating exceptions. Still, by divison by a small number e.g. I
get
floating exception (core dumped)
and my program stops. I cannot prevent the errors, because my
code is automatically generated and changes frequently, all I
need is to prevent a crash of the program. It needs to continue!
I tried what I read in some earlier message in this list:
compiling with -mieee
but it didn't help.
Also signal.h with a handler routine do not work.
Anybody has a solution?
NEWS NEWS NEWS NEWS NEWS NEWS:
7/28:
In Minnesota it is illegal to cross the state border with a duck
sitting on the head.
In Indiana it is illegal to be naked in the shower.
6/24:
'In Germany you can have one million dollar in your pocket and you
don't find anybody who will clean your shoes.'
- American journalist about (non-existing) service in Germany
easier email: jochen@hurlebaus.de
home: www.hurlebaus.de
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Come to Aachen, have a great time!
M.Sc. JOCHEN HURLEBAUS
INSTITUTE FOR BIOTECHNOLOGY RESEARCH CENTER JUELICH, GERMANY
ph: ++49-2461-61-3956 fax: ++49-2461-61-3870
jochen@hurlebaus.de
j.hurlebaus@fz-juelich.de
www.hurlebaus.de
private:
BAHNHOFSTRASSE 22 52064 AACHEN, GERMANY
ph: ++49-241-401-9414
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Floating Exceptions
1999-09-01 12:27 Floating Exceptions hurlebau
@ 1999-09-01 14:50 ` Greg Lindahl
0 siblings, 0 replies; 3+ messages in thread
From: Greg Lindahl @ 1999-09-01 14:50 UTC (permalink / raw)
To: jochen; +Cc: axp-list
> I'm using Redhat Linux 5.2 on a AXP-Alpha and have problems with
> floating exceptions. I'm using CPML which prevents some
> floating exceptions. Still, by divison by a small number e.g. I
> get
>
> floating exception (core dumped)
Which should be no surprise; you can simply exceed the allowed
exponent range.
There are a few ways to solve this:
1) use gcc and -mieee, if it worked right. You seem to have found a
bug; if you can isolate it to a small example, maybe it will get
fixed.
2) Use compaq's C compiler, which isn't out yet.
3) use double precision. Perhaps this will give you enough exponent
range to dodge the problem.
> Also signal.h with a handler routine do not work.
Right. It's hard to get that right...
-- g
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: floating exceptions
@ 1999-09-01 15:09 hurlebau
0 siblings, 0 replies; 3+ messages in thread
From: hurlebau @ 1999-09-01 15:09 UTC (permalink / raw)
To: axp-list
Thanks all for your help.
I missuesed the -mieee option, I guess it was just at the wrong
position of the compile command. It is not in the g++ man
page, so I didn't put it right. Now it works, even if, indeed,
it makes the code slower.
Thanks again
Jochen
NEWS NEWS NEWS NEWS NEWS NEWS:
7/28:
In Minnesota it is illegal to cross the state border with a duck
sitting on the head.
In Indiana it is illegal to be naked in the shower.
6/24:
'In Germany you can have one million dollar in your pocket and you
don't find anybody who will clean your shoes.'
- American journalist about (non-existing) service in Germany
easier email: jochen@hurlebaus.de
home: www.hurlebaus.de
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Come to Aachen, have a great time!
M.Sc. JOCHEN HURLEBAUS
INSTITUTE FOR BIOTECHNOLOGY RESEARCH CENTER JUELICH, GERMANY
ph: ++49-2461-61-3956 fax: ++49-2461-61-3870
jochen@hurlebaus.de
j.hurlebaus@fz-juelich.de
www.hurlebaus.de
private:
BAHNHOFSTRASSE 22 52064 AACHEN, GERMANY
ph: ++49-241-401-9414
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-09-01 15:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-01 12:27 Floating Exceptions hurlebau
1999-09-01 14:50 ` Greg Lindahl
-- strict thread matches above, loose matches on Subject: below --
1999-09-01 15:09 floating exceptions hurlebau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox