Unable to install MLton

Stephen Weeks MLton@sourcelight.com
Wed, 6 Sep 2000 14:53:10 -0700 (PDT)


I agree with Henry.  The problem is that MLton is running out of memory.  The
easiest fix that I can think of is to explicitly control the amount of memory
used by MLton by editing the bin/mlton script.  You do not need to recompile
anything to do this.   As I said earlier, you should change line 38 of bin/mlton
to the following:

 	exec "$mlton" '@MLton' 'load-world' "$world" max-heap 32m '--' $args

The max-heap 32m tells MLton not to use more than 32 megabytes for its heap.
You can put any number you like there (8m should be sufficient for hello-world).

Let us know if this works.