Now I'm really confused

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
9 Aug 2001 16:32:53 GMT


/usr/local/bin/ghc -ldl -DGHCI -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:profiling:parser:usageSP:cprAnalysis:javaGen:compMan:nativeGen:ghci  -package concurrent -package posix -package text -package util -recomp -Rghc-timing -H16M -O    -c rename/RnEnv.lhs -o rename/RnEnv.o
GHC's heap exhausted;
while trying to allocate 0 bytes in a 15998976-byte heap;
use the `-H<size>' option to increase the total heap size.

This is the same ghc which successfully compiled itself twice before.
It's now compiling a slightly newer version of itself.

Why the -H option set the *maximum* heap size?!

Should "SRC_HC_OPTS += -H16M" be removed from ghc/compiler/Makefile?
A good product shouldn't need explicit hints about the amount memory
it's going to use!

BTW, here are reasons for confusion of -H and -M: the error message
talks about -H, and ghc itself has a -H shortcut (instead of +RTS -H)
but no -M shortcut (requires +RTS -M).

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK