From: sewardj Date: Mon, 4 Feb 2002 12:15:39 +0000 (+0000) Subject: [project @ 2002-02-04 12:15:39 by sewardj] X-Git-Tag: Approximately_9120_patches~173 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5ed6149dfbda444716d111aa76cf341ff0e48dc0;p=ghc-hetmet.git [project @ 2002-02-04 12:15:39 by sewardj] Start to record some stuff about GHCi. --- diff --git a/ghc/docs/comm/index.html b/ghc/docs/comm/index.html index f18713c..e38f713 100644 --- a/ghc/docs/comm/index.html +++ b/ghc/docs/comm/index.html @@ -57,6 +57,7 @@
  • The Evil Mangler
  • Alien Functions
  • The Native Code Generator +
  • GHCi

    RTS & Libraries

    diff --git a/ghc/docs/comm/the-beast/ghci.html b/ghc/docs/comm/the-beast/ghci.html new file mode 100644 index 0000000..c6eea8d --- /dev/null +++ b/ghc/docs/comm/the-beast/ghci.html @@ -0,0 +1,135 @@ + + + + + The GHC Commentary - GHCi + + + +

    The GHC Commentary - GHCi

    + + This isn't a coherent description of how GHCi works, sorry. What + it is (currently) is a dumping ground for various bits of info + pertaining to GHCi, which ought to be recorded somewhere. + +

    Debugging the interpreter

    + + The usual symptom is that some expression / program crashes when + running on the interpreter (commonly), or gets wierd results + (rarely). Unfortunately, finding out what the problem really is + has proven to be extremely difficult. In retrospect it may be + argued a design error that GHC's implementation of the STG + execution mechanism provides only the weakest of support for + automated internal consistency checks. This renders it hard to + debug and, essentially, unverifiable. +

    + Execution failures in the interactive system can be due to + problems with the bytecode interpreter, problems with the bytecode + generator, or problems elsewhere. From the bugs seen so far, + the bytecode generator is often the culprit, with the interpreter + usually being correct. +

    + Here are some tips for tracking down interactive nonsense: +

    + + +

    Entering and returning between interpreted and compiled code

    + + +

    + +Last modified: Fri Feb 1 16:14:11 GMT 2002 + + + +