Chr
ExceptionWith the standard Moscow ML (version 2.01), and large HOL theories it is possible to overload Moscow ML’s internal table of global constants. Luckily, Peter Sestoft provided us with a patch to make this table much bigger. Here are the instructions (slightly updated by Peter Homeier) on how to apply it.
mosml
installation
mosml
2.01:
In mosml/src/
do
make clean world
In mosml/src/
do
tar xvfz mosml-patch.tgz
In mosml/src/compiler
do
touch Patch.sml Reloc.sml make all
In mosml/src/compiler
do
mv mosmllnk mosmlcmp ..
(I believe mosmllnk
is unchanged, but promote for
good measure)
In mosml/src/mosmllib
do
make clean all
In mosml/src/compiler
do
make clean all
In mosml/src/lex
do
make clean all
In mosml/src/runtime
do
touch expand.c fix_code.c interp.c make all
In mosml/src/runtime
do
mv camlrunm ..
In mosml/src/compiler
do
mv mosmllnk mosmlcmp ..
In mosml/src/lex
do
mv mosmllex ..
In mosml/src
do
./camlrunm compiler/mosmltop -stdlib mosmllib
and evaluate some expressions.
In mosml/src
do
make clean world
Check that
src/mosmlcmp = src/compiler/mosmlcmp src/mosmllnk = src/compiler/mosmllnk src/mosmllex = src/lex/mosmllex
In mosml/src
do
make install
bin/build cleanAll
to begin.)