[m-dev.] diff: default stack size using MSVC

Peter Ross peter.ross at miscrit.be
Sat Aug 26 00:21:10 AEST 2000


Hi,


===================================================================


Estimated hours taken: 0.1

scripts/ml.in:
        Set the default stack size to 10Mb when linking programs
        compiled with MSVC.


Index: ml.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/ml.in,v
retrieving revision 1.79
diff -u -r1.79 ml.in
--- ml.in       2000/08/17 05:31:10     1.79
+++ ml.in       2000/08/25 14:18:19
@@ -34,6 +34,13 @@
 SHARED_LIBS=${MERCURY_SHARED_LIBS="@SHARED_LIBS@"}
 TMPDIR=${TMPDIR=/tmp}

+# When compiling in the hlc.gc grade using the Microsoft Visual C
+# compiler, the default maximum stack size of 4Mb is too low for a
+# recursive language.
+# XXX at some stage this should become an option to ml
+LINK=/stack:10485760   # 10 Mb
+export LINK
+
 # On some systems (Solaris for exemple), we need libraries to be able
 # to
 # use sockets. The name of the needed libraries is determined by
 # autoconf
 # and passed through this variable.

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list