[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-05-24 (01:10) |
From: | Jon Harrop <jon@f...> |
Subject: | Re: [Caml-list] ocamlopt stack overflowing |
On Monday 23 May 2005 23:45, Richard Jones wrote: > On Mon, May 23, 2005 at 10:06:59PM +0100, Jon Harrop wrote: > > I've got a problem with ocamlopt stack overflowing on some generated > > OCaml source (one 1,227-line function, 288kB of source). Any ideas what > > the cause is? > > > > I suspect that compiling the OCaml distribution from source and using > > ocamlopt.opt will do the trick otherwise. > > We've seen this before (on Windows) and the solution was > > export OCAMLRUNPARAM=l=16M > > (for reasons which I forget now, we were using the bytecode ocamlopt, > not ocamlopt.opt). It turns out that ocamlopt.opt segfaults on some of this code so I'm using your (better!) solution instead. Thank you. :-) Incidentally, should that be "CAMLRUNPARAM" instead of "OCAMLRUNPARAM"? -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists