
Is there any way to permanently change the default heap size that nhc uses? I seem to have asked for the default heap size to be 1M, which is too small for my purposes, and now I always have to remember to add +RTS -H10M to everything. Amanda -- Amanda Clare http://users.aber.ac.uk/ajc99/ Tel: +44 (0)1970 621922 Fax: +44 (0)1970 622455 Dept. of Computer Science, University of Wales, Aberystwyth, SY23 3DB

Is there any way to permanently change the default heap size that nhc uses? I seem to have asked for the default heap size to be 1M, which is too small for my purposes, and now I always have to remember to add +RTS -H10M to everything.
Yes, when you compile a program, you can give a default heapsize for that program on the command line, e.g. nhc98 -o Main Main.hs -H10M If you want *all* programs built by nhc98 to get a larger default heapsize, then you can re-configure your build of nhc98 as follows: ./configure -H10M make runtime make install (Provided you still have the rest of the build on disk, this should only rebuild the helper utility 'nhc98heap' which does the default settings.) Regards, Malcolm
participants (2)
-
Amanda Clare
-
Malcolm Wallace