* out of memory error
@ 2010-02-02 13:31 Kihong Heo
2010-02-08 16:21 ` [Caml-list] " Damien Doligez
0 siblings, 1 reply; 2+ messages in thread
From: Kihong Heo @ 2010-02-02 13:31 UTC (permalink / raw)
To: caml-list
Hello caml list.
I'm suffering "out of memory" problem.
My program makes large graphs, but I didn't expect they need so much memory like that.
(I'm not sure there is the infinite loop or not..)
Can't I use "ocamlrun -v" for my program such that it use foreign language interface with C.
If I couldn't, can you give me a good debugging methodology?
It's very difficult to find out that error because of using foreign language interface..
I'm waiting for your cool answer.
Best,
--
Kihong Heo
khheo@ropas.snu.ac.kr
Programming Research Lab.
Seoul National University
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] out of memory error
2010-02-02 13:31 out of memory error Kihong Heo
@ 2010-02-08 16:21 ` Damien Doligez
0 siblings, 0 replies; 2+ messages in thread
From: Damien Doligez @ 2010-02-08 16:21 UTC (permalink / raw)
To: Kihong Heo; +Cc: caml-list
Hello,
On 2010-02-02, at 14:31, Kihong Heo wrote:
> Can't I use "ocamlrun -v" for my program such that it use foreign
> language interface with C.
> If I couldn't, can you give me a good debugging methodology?
> It's very difficult to find out that error because of using foreign
> language interface..
The OCaml runtime options are controlled by an environment variable:
OCAMLRUNPARAM. You can set this variable with "setenv" or "export"
(depending on your shell) before running your program. You do not
need to call ocamlrun explicitely with command-line arguments.
This feature is documented here:
http://caml.inria.fr/pub/docs/manual-ocaml/manual024.html#toc88
HTH,
-- Damien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-08 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-02 13:31 out of memory error Kihong Heo
2010-02-08 16:21 ` [Caml-list] " Damien Doligez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox