From: Orphi Date: Thu, 9 Dec 2010 16:51:52 +0000 (+0000) Subject: FIX #4826 partial: Add -rtsopts and -with-rtsopts to User Guide section 4.11.6 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a54f113bf5c92a170f6dd4cebf07d02ba52c8096;p=ghc-hetmet.git FIX #4826 partial: Add -rtsopts and -with-rtsopts to User Guide section 4.11.6 --- diff --git a/docs/users_guide/phases.xml b/docs/users_guide/phases.xml index d1086d8..adaf370 100644 --- a/docs/users_guide/phases.xml +++ b/docs/users_guide/phases.xml @@ -991,6 +991,64 @@ $ cat foo.hspp + + + + + + This option affects the processing of RTS control options given either + 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. + + + + 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 . + + + + + + + + + + + + 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. + (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 + them.) + + + + + +