[[project @ 2002-02-04 12:15:39 by sewardj] sewardj**20020204121539 Start to record some stuff about GHCi. ] { addfile ./ghc/docs/comm/the-beast/ghci.html hunk ./ghc/docs/comm/index.html 60 +
  • GHCi hunk ./ghc/docs/comm/the-beast/ghci.html 1 + + + + + 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 + + + + }