Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* fp exceptions
@ 1999-06-20 20:37 glenn murphy
  1999-06-20 21:17 ` Wes Bauske
  0 siblings, 1 reply; 10+ messages in thread
From: glenn murphy @ 1999-06-20 20:37 UTC (permalink / raw)
  To: axp-list

I'm sorry if any of my questions are FAQs.  I'm just learning to program,
and I get a lot of floating point exceptions at runtime with code that
runs fine on x86 systems.  I'm using a 21064 (cabriolet) with RedHat 5.2.
Is this something specific to the 21064 that I need a compiler option for?
Is this a problem with egcs 1.0.3 that comes with RHL 5.2?  If I upgrade
egcs, do I need to upgrade all the libs as well?  Any help would be
greatly appreciated.

Glenn
gpmurphy@mcs.net


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: compiling kernel 2.4.3
@ 2001-04-23 18:52 Uncle George
  2001-05-01  3:23 ` FP Exceptions T. Daniel Crawford
  0 siblings, 1 reply; 10+ messages in thread
From: Uncle George @ 2001-04-23 18:52 UTC (permalink / raw)
  To: axp-list

FP operations are pipelined, and are at various stages of execution.  Without the
-mieee ( gcc - "C" compile ) switch the FPU processes instructions till a trap
occures, then Kaos happens The kernel does not know where exactly the failure
occured.

With -mieee the compiler places limits on the operations that can occure in the
pipeline, and if a limit is exceeded, the compiler will place a pause ( trapb )
instruction till the FPU has been drained & ALL possible TRAPS have been processed.
So long as things are in a proper sequence, the kernel kan attempt to fix the error.
Because it know how to backtrace/backstep

The problems I am having is with -mieee & a trap & not having the right number
returned as a part of the fix-up.  The numerical number will also happen with any
compiler, as it is a kernel bug
/gat

"T. Daniel Crawford" wrote:

> What about special compiler flags to handle these cases?  I've seen in the
> archives reference to -mieee, but this is not documented in the Compaq ccc
> or fort man pages.  I tried it with the Fortran compilation but the same
> error occurs.
>
> -Daniel
>
> On Mon, 23 Apr 2001, Uncle George wrote:
>
> > What I have very little of is "influence".
> >
> > All ( most ) denormal processing is done via software inside the kernel, as the
> > FPU cant handle the operations at all.  An expensive (timewise) deal, but u get
> > to continue with the algorithmic operations.
> >
> > The original problem was with a divide by a denorm. This appears to be fixed for
> > the 2.4.3 kern
> >
> > the next problem was the conversion of a single precision denorm into a double
> > This should always work, but comes out as zero.  I had a fix, but didn't reach
> > the rite folks
> >
> > After that was the conversion of a large float/double  into an integer/long. It
> > doesn't appear to up to ieee754 standards, but have no manual ( nor want to get
> > it for $$$$ )
> >
> > /gat
> >
> > If u got the numbers which look like fortran #'s (  :-} )  and can produce these
> > nums( terms of the equation  )  in hexadecimal, then one can play in "C" to see
> > where the issue is. I no longer have a DU/true64 box to play with to see where
> > the number diverge though :-/
> >
>
> --
> T. Daniel Crawford                           Department of Chemistry
> crawdad@vt.edu                                    Virginia Tech
> www.chem.vt.edu/chem-dept/crawford    Voice: 540-231-7760  FAX: 540-231-3255
>                             --------------------
>  PGP Public Key at: http://www.chem.vt.edu/chem-dept/crawford/publickey.txt
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-05-02 12:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-20 20:37 fp exceptions glenn murphy
1999-06-20 21:17 ` Wes Bauske
  -- strict thread matches above, loose matches on Subject: below --
2001-04-23 18:52 compiling kernel 2.4.3 Uncle George
2001-05-01  3:23 ` FP Exceptions T. Daniel Crawford
2001-05-01  5:30   ` Greg Lindahl
2001-05-01 10:56   ` Uncle George
2001-05-01 11:52     ` T. Daniel Crawford
2001-05-01 12:23       ` Uncle George
2001-05-01 12:26         ` T. Daniel Crawford
2001-05-01 13:03           ` Uncle George
2001-05-02 12:10           ` Uncle George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox