From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id A60972F3A5 for ; Tue, 8 Aug 2000 17:40:36 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id RAA02268 for axp-list@listman.redhat.com; Tue, 8 Aug 2000 17:40:36 -0400 Received: from ztxmail02.ztx.compaq.com (ztxmail02.ztx.compaq.com [161.114.1.206]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id RAA02261 for ; Tue, 8 Aug 2000 17:40:35 -0400 Received: by ztxmail02.ztx.compaq.com (Postfix, from userid 12345) id 3FA3C46E7; Tue, 8 Aug 2000 16:40:05 -0500 (CDT) Received: from anw.zk3.dec.com (and.zk3.dec.com [16.140.64.3]) by ztxmail02.ztx.compaq.com (Postfix) with ESMTP id 912D82A32 for ; Tue, 8 Aug 2000 16:40:04 -0500 (CDT) Received: from imhotep.zk3.dec.com by anw.zk3.dec.com (8.9.3/1.1.22.2/08Sep98-0251PM) id RAA0001963364; Tue, 8 Aug 2000 17:40:02 -0400 (EDT) Date: Tue, 8 Aug 2000 17:35:02 -0400 (EDT) From: Ross A Knepper To: axp-list@redhat.com Subject: Re: FP on Linux/Alpha (Re: Compaq Compiler) In-Reply-To: <20000808063553.610.qmail@avalon.gci.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors On Mon, 7 Aug 2000 bryan@ak.net wrote: > This brings up another question -- What does the 'make config' > help mean when it says that the kernel has to "finish" floating- > point arithmetic? the alpha hardware has an incomplete implementation of the IEEE 754 spec for floating point arithmetic. in the normal case, the alpha hardware will be sufficient. they cut a few corners in chip design by not implementing certain cases that result in Inf or NaN (overflow, underflow, and the like). to simplify the chip design (hence allowing it to be clocked higher), an instruction found to be producing a non-normal result is trapped to the OS for completion. therefore, the linux kernel needs to know what to do when it receives a trap for a weird FP instruction. of course, it's extremely slow to trap into the OS. the reason that this tradeoff is acceptable is that for the majority of applications, you never really want to encounter Inf or NaN anyway, so you never trap to the OS. incidentally, FP instructions that potentially cause traps have two different versions -- one that can trap for completion and one that just gives up if it can't do the math in hardware. this is what the -mieee flag to gcc controls. -ross