From: sewardj Date: Tue, 25 Jan 2000 10:25:15 +0000 (+0000) Subject: [project @ 2000-01-25 10:25:15 by sewardj] X-Git-Tag: Approximately_9120_patches~5216 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ddc83d41a258a1da7c70348a654bbd521b6943ac;p=ghc-hetmet.git [project @ 2000-01-25 10:25:15 by sewardj] Add missing final paragraph of explaination about x86 FP trickery. --- diff --git a/ghc/compiler/nativeGen/MachMisc.lhs b/ghc/compiler/nativeGen/MachMisc.lhs index f9947a4..0487b72 100644 --- a/ghc/compiler/nativeGen/MachMisc.lhs +++ b/ghc/compiler/nativeGen/MachMisc.lhs @@ -463,6 +463,12 @@ FP stack, the operation done, and the result copied back into the relevant register. There are only six %fake registers because 2 are needed for the translation, and x86 has 8 in total. +The translation is inefficient but is simple and it works. A cleverer +translation would handle a sequence of insns, simulating the FP stack +contents, would not impose a fixed mapping from %fake to %st regs, and +hopefully could avoid most of the redundant reg-reg moves of the +current translation. + \begin{code} #if i386_TARGET_ARCH