From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23618 invoked from network); 5 Jan 1999 02:55:53 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 5 Jan 1999 02:55:53 -0000 Received: from notfoo.res.cmu.edu (NOTFOO.RES.CMU.EDU [128.2.91.65]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA07919 for ; Mon, 4 Jan 1999 21:37:27 -0500 Received: from localhost (rknepper@localhost) by notfoo.res.cmu.edu (8.8.5/8.6.9) with SMTP id VAA18506 for ; Mon, 4 Jan 1999 21:37:47 -0500 Date: Mon, 4 Jan 1999 21:37:47 -0500 (EST) From: "Ross A. Knepper" To: axp-list@redhat.com Subject: Re: what is FP completion code option in the kernel? In-Reply-To: <19990105010342.13024.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 4 Jan 1999, Designer 7 wrote: > I was having trouble running DU binaries on my Alpha/Linux machine until > I compiled the FP Completion code option into the kernel. Up until now, > I've always ignored that option since I didn't really know what it was > (still don't). Now that I know I need it to run DU binaries, I want to > know what does that option do? If I wasn't smoking anything, I think I > recall that there is no help for that option... so I'm totally in the > dark. Can someone please explain? in order to streamline the alpha floating point hardware, the designers opted not to include full support for IEEE 754 (this would include things like denormals). the logic behind this decision is that it takes a lot of extra hardware (meaning extra complexity and slower operation) and in the common case, you don't need such things anyway. therefore, fp code can be compiled either to ignore the condition or to raise an exception. in the latter case, the operating system can then complete the fp calculation in software. this is essentially what that kernel option does. without it, all the os can do is send a floating exception to the process, killing it. note that fp completion in software is extremely slow. if you have an executable that needs it, it's a lifesaver. but the best solution is to change the code so that it doesnt produce such exceptions in the first place. it's been awhile since i looked at all this in detail, so if i've gotten any of it wrong, please don't hesitate to correct me :) -ross