caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom Hawkins <tom1@launchbird.com>
To: caml-list@inria.fr
Subject: RE: [Caml-list] What happend to my application?
Date: Sun, 19 Jan 2003 18:36:58 -0600	[thread overview]
Message-ID: <200301191836.58825.tom1@launchbird.com> (raw)

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


             reply	other threads:[~2003-01-20  0:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20  0:36 Tom Hawkins [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-18 17:56 Tom Hawkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200301191836.58825.tom1@launchbird.com \
    --to=tom1@launchbird.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).