Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlopt stack overflowing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] ocamlopt stack overflowing
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).

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com