Browse thread
RE: [Caml-list] What happend to my application?
- Tom Hawkins
[
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: | 2003-01-20 (00:31) |
From: | Tom Hawkins <tom1@l...> |
Subject: | RE: [Caml-list] What happend to my application? |
I'm using Linux (i386). I tried both native and byte-code compilation 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" <mattias.waldau@abc.se> To: "'Tom Hawkins'" <tom1@launchbird.com> 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