Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] What happend to my application?

22 views
Skip to first unread message

Tom Hawkins

unread,
Jan 19, 2003, 7:36:11 PM1/19/03
to caml...@inria.fr
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...@abc.se>
To: "'Tom Hawkins'" <to...@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-c...@pauillac.inria.fr
> [mailto:owner-c...@pauillac.inria.fr] On Behalf Of Tom Hawkins
> Sent: den 18 januari 2003 18:56
> To: caml...@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-lis...@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-lis...@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

0 new messages