From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20456 invoked from network); 20 Jul 1998 20:31:21 -0000 Received: from mail11.digital.com (192.208.46.10) by mail2.redhat.com with SMTP; 20 Jul 1998 20:31:20 -0000 Received: from us1rmc.bb.dec.com (us1rmc.bb.dec.com [16.57.16.6]) by mail11.digital.com (8.8.8/8.8.8/WV1.0f) with SMTP id QAA23221 for ; Mon, 20 Jul 1998 16:31:20 -0400 (EDT) Received: from linux01.hlo.dec.com by us1rmc.bb.dec.com (5.65/rmc-17Jan97) id AA23074; Mon, 20 Jul 98 16:27:06 -0400 Received: (from paradis@localhost) by linux01.hlo.dec.com (8.8.7/8.8.7) id QAA00623 for axp-list@redhat.com; Mon, 20 Jul 1998 16:24:54 -0400 From: Jim Paradis Message-Id: <199807202024.QAA00623@linux01.hlo.dec.com> Subject: Re: denorms on the alpha To: axp-list@redhat.com Date: Mon, 20 Jul 1998 16:24:54 -0400 (EDT) In-Reply-To: <199807201924.PAA05974@cobra.cs.virginia.edu> from "Greg Lindahl" at Jul 20, 98 03:24:49 pm X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > This program crashes when I multiply a denorm by 2. Is it the case > under Linux/Alpha that denorms should never be generated and cause fp > exceptions when you do any operations with them? Well... depends on how you want to handle things. Ideally, yes; floating point calculations should always take place with valid numbers, never overflow, never divide by zero, never do anything that'll generate an exception. In the real world, though, this isn't always the case. I just read an article about the US Navy ship Yorktown. They're running the whole ship on a non-UNIX operating system (I am Not Telling which one...). An officer entered a zero into a field, which caused a divide by zero error, which wasn't handled by the application or the OS (the article wasn't clear). The resulting crash shut down the ship's propulsion system; they were dead in the water for a couple of hours until they could reboot everything. If you want "quiet" exception behavior according to the IEEE spec (i.e. FP ops on denorms or NaNs or infinities produce the appropriate NaN results but otherwise don't affect program execution flow) then you have to specify "-mieee" to the compiler and pay a performance penalty. If you can scrub your code so that these things *don't* happen, then you can take advantage of Alpha pipelining, omit the "-mieee", and run much faster. -- Jim Paradis (paradis@linux01.hlo.dec.com) "The early bird gets the worm. Compaq Computer Corporation If you want something else for (508)841-3243 breakfast, get up later." http://www.tiac.net/users/jrp/index.html