From be36dc8301313715f1373a323c9c322f57295e74 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 16 Dec 2010 12:31:51 +0000 Subject: refactor and tidy up the section on RTS options --- docs/users_guide/phases.xml | 72 +++++++++++++++++++++++++++++---------------- 1 file changed, 47 insertions(+), 25 deletions(-) (limited to 'docs/users_guide/phases.xml') diff --git a/docs/users_guide/phases.xml b/docs/users_guide/phases.xml index adaf370cfb..b48ebe8aa6 100644 --- a/docs/users_guide/phases.xml +++ b/docs/users_guide/phases.xml @@ -1000,31 +1000,53 @@ $ cat foo.hspp on the command line or via the GHCRTS environment variable. There are three possibilities: - - - disables all processing of RTS options. - Passing anywhere on the command line causes the program - to abort with an error message. Setting the GHCRTS environment - variable causes a warning is printed before the main Haskell program runs. - - - enables only the "safe" RTS options on the - command line. (Currently only and .) - Any other RTS options on the command line abort the program with an error - message. All RTS options in the GHCRTS environment variable are - processed as normal. This is the default setting. - - - (or just ) enables - all RTS option processing, both on the command line and - through the GHCRTS environment variable. - - + + + + + + Disable all processing of RTS options. + If appears anywhere on the command + line, then the program will abort with an error message. + If the GHCRTS environment variable is + set, then the program will emit a warning message, + GHCRTS will be ignored, and the program + will run as normal. + + + + + + + [this is the default setting] Enable + only the "safe" RTS options: (Currently + only + and .) Any other RTS options + on the command line or in the GHCRTS + environment variable causes the program with to abort + with an error message. + + + + + , or + just + + + Enable all RTS option + processing, both on the command line and through + the GHCRTS environment variable. + + + + - Prior to GHC 7.0, the default was to process all RTS options. However, since - RTS options can be used to write logging data to arbitrary files under the - security context of the running program, there is a potential security problem. - For this reason, GHC 7.0 defaults to . + In GHC 6.12.3 and earlier, the default was to process all + RTS options. However, since RTS options can be used to + write logging data to arbitrary files under the security + context of the running program, there is a potential + security problem. For this reason, GHC 7.0.1 and later + default to . @@ -1038,7 +1060,7 @@ $ cat foo.hspp This option allows you to set the default RTS options at link-time. For example, sets the default heap size to 128MB. - This will now always be the default heap size, unless the user overrides it. + This will always be the default heap size for this program, unless the user overrides it. (Depending on the setting of the option, the user might not have the ability to change RTS options at run-time, in which case would be the only way to set -- cgit v1.2.1