<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 08/12/2010 03:29 PM, Brandon S Allbery KF8NH wrote:<br>
    <blockquote cite="mid:4CFFA46C.8070500@ece.cmu.edu" type="cite">
      <pre wrap="">Then build your CGIs restricted.  Restricting the runtime by default,
*especially* when setting runtime options at compile time is so much of a
pain, is just going to cause problems.  I'm already thinking that I may have
to skip ghc7.
</pre>
    </blockquote>
    <br>
    With current versions of GHC, to set the default RTS options you
    need to do some insanity with linking in a C stub or something
    absurd like that.<br>
    <br>
    However, take a look at this:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/runtime-control.html#id3095435">http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/runtime-control.html#id3095435</a><br>
    <br>
    It appears that with GHC 7, you can just say something like <code
      class="literal">-with-rtsopts="-H128m -K1m"</code> while compiling
    your program, and now that will forever be the default RTS settings
    for your program.<br>
    <br>
    I haven't actually tried this myself, however. In particular, I'm
    not sure if you have to turn on the full RTS options before this
    will work...<br>
    <br>
  </body>
</html>