From: Ian Lynagh Date: Thu, 16 Aug 2007 18:32:59 +0000 (+0000) Subject: Document +RTS --info, and make it a Read'able Haskell value X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=0dfcd5776f3ef89ceaafef6c4730ddac759e3716 Document +RTS --info, and make it a Read'able Haskell value --- diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index 95365ba..776b65f 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -661,6 +661,29 @@ char *ghc_rts_opts = "-H128m -K1m"; ghc/compiler/parser/hschooks.c in a GHC source tree. + + + Getting information about the RTS + + RTS + + It is possible to ask the RTS to give some information about + itself. To do this, use the flag, e.g. + +$ ./a.out +RTS --info + [("GHC RTS", "Yes") + ,("GHC version", "6.7") + ,("RTS way", "rts_p") + ,("Host platform", "x86_64-unknown-linux") + ,("Build platform", "x86_64-unknown-linux") + ,("Target platform", "x86_64-unknown-linux") + ,("Compiler unregisterised", "NO") + ,("Tables next to code", "YES") + ] + + The information is formatted such that it can be read as a + of type [(String, String)]. +