From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA28447; Mon, 20 Jan 2003 01:31:17 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA28424 for ; Mon, 20 Jan 2003 01:31:16 +0100 (MET) Received: from glow.phpwebhosting.com (Hosting-132-76.PHPWebHosting.Com [64.72.132.76] (may be forged)) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h0K0VFv08153 for ; Mon, 20 Jan 2003 01:31:15 +0100 (MET) Received: (qmail 1891 invoked by uid 508); 20 Jan 2003 00:31:15 -0000 Received: from unknown (HELO sparky) (24.163.168.219) by hosting-132-76.phpwebhosting.com with SMTP; 20 Jan 2003 00:31:15 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Tom Hawkins Organization: Launchbird Design Systems, Inc. Subject: RE: [Caml-list] What happend to my application? Date: Sun, 19 Jan 2003 18:36:58 -0600 User-Agent: KMail/1.4.3 To: caml-list@inria.fr MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200301191836.58825.tom1@launchbird.com> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I'm using Linux (i386). I tried both native and byte-code compilation=20 and both produce the same message: "Killed". If the OS is killing it, is there some way to adjust the settings to let it run a little bit longer? ---------- Forwarded Message ---------- Subject: RE: [Caml-list] What happend to my application? Date: Sun, 19 Jan 2003 08:04:20 +0100 From: "Mattias Waldau" To: "'Tom Hawkins'" You probably run out of stack space. Native compilation handles larger programs than byte-coded. (In byte-coded you should get an error message saying out of stack. Which OS do you use?) When I get that problem it is often List.map over large list (more than a 1000 elements) that is the reason. List.map is not tail-recursive. Rewrite into a loop and use an accumulator (or use rev_map). > -----Original Message----- > From: owner-caml-list@pauillac.inria.fr > [mailto:owner-caml-list@pauillac.inria.fr] On Behalf Of Tom Hawkins > Sent: den 18 januari 2003 18:56 > To: caml-list@inria.fr > Subject: [Caml-list] What happend to my application? > > > Hello, > > I'm using Ocaml as an interpreter to a language I designed. > I just ran it with a large program and the interpreter dies. > What happend? The only error message was "killed". > > I was monitering the cpu process with "top" and the > interpreter was only consuming 70% of memory when > it was killed. I've tried both regular and native > compilation and the results are the same. > > Thanks, > Tom > ------------------- > To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners ------------------------------------------------------- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners