From: Ross A Knepper <rak@zk3.dec.com>
To: axp-list@redhat.com
Subject: Re: FP on Linux/Alpha (Re: Compaq Compiler)
Date: Tue, 8 Aug 2000 17:35:02 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.21.0008081726230.9072-100000@imhotep.zk3.dec.com> (raw)
In-Reply-To: <20000808063553.610.qmail@avalon.gci.net>
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
prev parent reply other threads:[~2000-08-08 21:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-07 12:04 Compaq Compiler David Webb
2000-08-07 12:25 ` Olle Hansson
2000-08-07 14:24 ` Michal Jaegermann
2000-08-07 14:28 ` Andreas Trottmann
2000-08-07 16:12 ` Routing Crash Darren Breeze
2000-08-07 17:36 ` Compaq Compiler David Huggins-Daines
2000-08-08 6:35 ` FP on Linux/Alpha (Re: Compaq Compiler) bryan
2000-08-08 21:35 ` Ross A Knepper [this message]
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