From 0dfcd5776f3ef89ceaafef6c4730ddac759e3716 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 16 Aug 2007 18:32:59 +0000 Subject: [PATCH] Document +RTS --info, and make it a Read'able Haskell value --- docs/users_guide/runtime_control.xml | 23 +++++++++++++++++++++++ rts/Makefile | 14 +++++++------- rts/RtsFlags.c | 13 +------------ rts/RtsUtils.c | 20 ++++++++++++++++++++ rts/RtsUtils.h | 2 ++ 5 files changed, 53 insertions(+), 19 deletions(-) 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)]. +