caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] What happend to my application?
@ 2003-01-18 17:56 Tom Hawkins
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Hawkins @ 2003-01-18 17:56 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [Caml-list] What happend to my application?
@ 2003-01-20  0:36 Tom Hawkins
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Hawkins @ 2003-01-20  0:36 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-20  0:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-18 17:56 [Caml-list] What happend to my application? Tom Hawkins
2003-01-20  0:36 Tom Hawkins

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