Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: "axp-list@redhat.com" <axp-list@redhat.com>
Subject: Re: g77 problems
Date: Sun, 06 Sep 1998 20:57:39 +0000	[thread overview]
Message-ID: <35F2F743.476E1AC6@paralleldata.com> (raw)
In-Reply-To: 35F2F074.41C6@blueskystudios.com

Richard Hadsell wrote:
> 
> Richard Henderson wrote:
> >
> > On Sat, Sep 05, 1998 at 07:57:11PM +0000, Wes Bauske wrote:
> > > Humm. What is the default mode for g77/gcc for undeflow, terminate or zero?
> >
> > The default is trap, I believe.
> >
> > > Thought Alphas cannot generate denormalized outputs, at least with HW.
> >
> > This is true.
> >
> > > I also like getting the 'right' answer so
> > > hiding un-initialized variables and screwed up
> > > indexing is not helpful from my point of view...
> >
> > Yes indeed.  It is amazing how many people so want to bury
> > their heads in the sand over this.
> 
> It's actually quite easy to generate a denormalized number using exp().
> When the argument is barely more negative than required to exceed the
> representation limits in the result, the library function gives you a
> denormalized number.  Then your code has to be compiled with -mieee, or
> it traps when you try to use the result.
> 

Actually, wouldn't the exp() function have to be '-mieee' then,
not just your application? '-mieee' actually adds asm
instructions/directives to your code to stop pipelining to handle
exactly the instruction that runs into trouble so if
exp() returns them, it has to have those extra bits.

I'm not saying you can't think of a way to generate them
though. I'm saying most applications don't use numbers
in that range and if they do, you should increase your
FP word size, if possible. When your app generates them,
you should be looking at why it's doing that. The only
case I've seen that's useful is underflow in a recursive
algorithm and setting the result to zero is the 'right' 
thing to do for that sort of condition in the alogrithms 
I've worked with. 


Wes


  reply	other threads:[~1998-09-06 20:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-01 10:56 g77 problems Dr P. Caleb Dhanasekaran
1998-09-02  1:48 ` Michal Jaegermann
1998-09-02  4:23 ` Wes Bauske
1998-09-02 15:34   ` David Alan Gilbert
1998-09-03  6:23     ` Wes Bauske
1998-09-04  0:41       ` Richard Henderson
1998-09-05 19:57         ` Wes Bauske
1998-09-05 20:50           ` Richard Henderson
1998-09-06 20:22             ` Dave Gilbert
1998-09-06 21:05               ` Wes Bauske
1998-09-06 22:41               ` Richard Henderson
1998-09-06 20:28             ` Richard Hadsell
1998-09-06 20:57               ` Wes Bauske [this message]
1998-09-23 15:28 ` RedHat5.1 on UX4 Motherboard Dr P. Caleb Dhanasekaran
1998-09-23 17:00   ` furio ercolessi
1998-09-23 17:00   ` Nicholas Sallembian
1998-09-23 17:02   ` Adrian Gartland
1998-09-24 10:01   ` Armin Ollig
1998-09-24 17:16     ` Dr P. Caleb Dhanasekaran
  -- strict thread matches above, loose matches on Subject: below --
1998-09-02  1:27 g77 problems Greg Lindahl
1998-09-03 21:08 Greg Lindahl
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