From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 79AD4BCAB for ; Tue, 24 May 2005 00:41:26 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j4NMfPXA027727 for ; Tue, 24 May 2005 00:41:26 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA18429 for ; Tue, 24 May 2005 00:41:25 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j4NMfOrA027722 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 24 May 2005 00:41:25 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1DaLfX-000770-00; Mon, 23 May 2005 23:45:07 +0100 Date: Mon, 23 May 2005 23:45:07 +0100 To: Jon Harrop Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlopt stack overflowing Message-ID: <20050523224507.GA25635@furbychan.cocan.org> References: <200505232207.00090.jon@ffconsultancy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505232207.00090.jon@ffconsultancy.com> User-Agent: Mutt/1.3.28i From: Richard Jones X-Miltered: at concorde with ID 42925C15.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42925C14.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlopt:01 stack:01 ocamlopt:01 stack:01 ocaml:01 ocaml:01 bytecode:01 notepad:01 wrote:01 compiling:02 generated:05 problem:05 opt:05 opt:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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