Just wanted to clarify this, since I got hung up on it before. The -M option
Simon is referring to is the -M runtime option. There is also a completely
unrelated -M option for GHC proper. (It outputs makefile dependencies).
Normally, options that can't be parsed by the front-end get passed to the
runtime, but here there is a conflict. So, in order to ensure that -M gets
through, you have to be explicit, by prefixing the entire option with
"-optCrts": e.g., -optCrts-M80m.

-FC

> In GHC 4.xx, the -H switch has a different meaning from previous versions.
> It now gives a "suggested heap size" to the garbage collector, since
> otherwise the heap size will grow and shrink with the requirements of the
> program.
>
> The absolute maximum heap size is specified by the -M option.  See the
> documentation for more details:
>
http://research.microsoft.com/users/t-simonm/ghc/Docs/latest/users_guide/use
rs_guide-2.html#ss2.12.
>
>In the latest sources, if you give a -H option larger than the current -M,
>then the latter will be adjusted.
>
>Cheers,
>       Simon

Reply via email to