From: simonmar Date: Wed, 25 Feb 2004 11:49:15 +0000 (+0000) Subject: [project @ 2004-02-25 11:49:14 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~62 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=60170b40dd3e3396dc3991884880f2365c9b0c08;p=ghc-hetmet.git [project @ 2004-02-25 11:49:14 by simonmar] Document -threaded and -debug options. --- diff --git a/ghc/docs/users_guide/flags.sgml b/ghc/docs/users_guide/flags.sgml index 47ad98d..01c074f 100644 --- a/ghc/docs/users_guide/flags.sgml +++ b/ghc/docs/users_guide/flags.sgml @@ -1161,6 +1161,18 @@ static - + + + Use the threaded runtime + static + - + + + + Use the debugging runtime + static + - + diff --git a/ghc/docs/users_guide/phases.sgml b/ghc/docs/users_guide/phases.sgml index 6a43d90..e2cf536 100644 --- a/ghc/docs/users_guide/phases.sgml +++ b/ghc/docs/users_guide/phases.sgml @@ -673,6 +673,44 @@ strmod = "\ Main). + + + + + + + Link the program with a debugging version of the + runtime system. The debugging runtime turns on numerous + assertions and sanity checks, and provides extra options + for producing debugging output at runtime (run the program + with +RTS -? to see a list). + + + + + + + + + Link the program with the "threaded" runtime system. + This version of the runtime is designed to be used in + programs that use multiple operating-system threads. It + supports calls to foreign-exported functions from multiple + OS threads. Calls to foreign functions are made using the + same OS thread that created the Haskell thread (if it was + created by a call-in), or an arbitrary OS thread otherwise + (if the Haskell thread was created by + forkIO). + + The threaded RTS does not + support using multiple CPUs to speed up execution of a + multi-threaded Haskell program. The GHC runtime platform + is still single-threaded, but using the + option it can be used safely in + a multi-threaded environment. + + +