X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=docs%2Fusers_guide%2Fruntime_control.xml;h=14732c57c3aa52da7a6e812ebbae65b12b130a8f;hp=9f06ba8fcd13eef807827e6b1d224becef15275d;hb=63dd4db64df2949448ceef1adb3c885c3ebb03b9;hpb=6c46c6ced22513f0a3cb7390a00dc2257e85700d diff --git a/docs/users_guide/runtime_control.xml b/docs/users_guide/runtime_control.xml index 9f06ba8..14732c5 100644 --- a/docs/users_guide/runtime_control.xml +++ b/docs/users_guide/runtime_control.xml @@ -10,7 +10,8 @@ code and then links it with a non-trivial runtime system (RTS), which handles storage management, profiling, etc. - You have some control over the behaviour of the RTS, by giving + If you use the -rtsopts flag when linking, + you have some control over the behaviour of the RTS, by giving special command-line arguments to your program. When your Haskell program starts up, its RTS extracts @@ -68,7 +69,8 @@ environment variablefor setting RTS options - RTS options are also taken from the environment variable + When the -rtsopts flag is used when linking, + RTS options are also taken from the environment variable GHCRTSGHCRTS . For example, to set the maximum heap size to 128M for all GHC-compiled programs (using an @@ -1045,6 +1047,20 @@ + + Linker flags to change RTS behaviour + + RTS behaviour, changing + + + GHC lets you exercise rudimentary control over the RTS settings + for any given program, by using the -with-rtsopts + linker flag. For example, to set -H128m -K1m, + link with -with-rtsopts="-H128m -K1m". + + + + “Hooks” to change RTS behaviour