Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
out of memory error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-02-08 (16:21)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] out of memory error

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:


-- Damien