<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/a4cffb254f58984e709674a57450d264"
  from="Tom Hawkins &lt;tom1@l...&gt;"
  author="Tom Hawkins"
  date="2003-01-20T00:31:17"
  subject="RE: [Caml-list] What happend to my application?"
  prev="2003/01/a6973f232dbfe83b1da64912a6a4daf4"
  next="2003/01/7656f8fc578c270bba4bb9544ed16b3f"
  prev-thread="2003/01/d22695654983f308cfe3accefb4feb63"
  next-thread="2003/01/72c455ab961d117e66091b9e50b158a7"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="RE: [Caml-list] What happend to my application?">
<msg 
  url="2003/01/a4cffb254f58984e709674a57450d264"
  from="Tom Hawkins &lt;tom1@l...&gt;"
  author="Tom Hawkins"
  date="2003-01-20T00:31:17"
  subject="RE: [Caml-list] What happend to my application?">
</msg>
</thread>

<contents>
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" &lt;mattias.waldau@abc.se&gt;
To: "'Tom Hawkins'" &lt;tom1@launchbird.com&gt;

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).

&gt; -----Original Message-----
&gt; From: owner-caml-list@pauillac.inria.fr
&gt; [mailto:owner-caml-list@pauillac.inria.fr] On Behalf Of Tom Hawkins
&gt; Sent: den 18 januari 2003 18:56
&gt; To: caml-list@inria.fr
&gt; Subject: [Caml-list] What happend to my application?
&gt;
&gt;
&gt; Hello,
&gt;
&gt; I'm using Ocaml as an interpreter to a language I designed.
&gt; I just ran it with a large program and the interpreter dies.
&gt; What happend?  The only error message was "killed".
&gt;
&gt; I was monitering the cpu process with "top" and the
&gt; interpreter was only consuming 70% of memory when
&gt; it was killed.  I've tried both regular and native
&gt; compilation and the results are the same.
&gt;
&gt; Thanks,
&gt; Tom
&gt; -------------------
&gt; 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

</contents>

</message>

