From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10740 invoked from network); 6 Sep 1998 20:55:57 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 6 Sep 1998 20:55:57 -0000 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA01019 for ; Sun, 6 Sep 1998 16:56:34 -0400 Received: by paralleldata.com from localhost (router,SLMail V2.5); Sun, 06 Sep 1998 15:56:29 -0500 Received: by paralleldata.com from paralleldata.com (208.252.119.247::mail daemon; unverified,SLMail V2.5); Sun, 06 Sep 1998 15:56:25 -0500 Sender: "Wsb" Message-ID: <35F2F743.476E1AC6@paralleldata.com> Date: Sun, 06 Sep 1998 20:57:39 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: "axp-list@redhat.com" Subject: Re: g77 problems References: <35ECC850.7721DCED@paralleldata.com> <35ED659F.10AAA5AF@treblig.org> <35EE35FB.2DD93032@paralleldata.com> <19980903174139.A32696@dot.cygnus.com> <35F19797.4ACE7995@paralleldata.com> <19980905135024.A18098@dot.cygnus.com> <35F2F074.41C6@blueskystudios.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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