> Why is the parser (parser/Parser.hs) compiled with -H80M? 
> This causes an error
> on my ghc-4.02 (default max heap size 64M). Instead of increasing the
> maximum heap size, I just tried -H64M, which works fine (and 
> it should also
> work without -Hxxx, but it would take probably longer to compile).

It depends on the compiler; 4.02 is pretty hungry and might need more than
64m.

> BTW: Does increasing the default heap size affect the overall memory
> consumption of the compiler?

It shouldn't in general, but it can if your program has strange memory
behaviour.  GHC tries to make best use of all the memory allocated to it by
-H, estimating how the program will behave and sizing the generations
accordingly.  Sometimes the program has a blip in space usage which can
cause GHC to overflow the -H boundary.

Cheers,
        Simon

Reply via email to