From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id DC6D2BC37 for ; Mon, 8 Feb 2010 17:21:25 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.49,431,1262559600"; d="scan'208";a="43899073" Received: from macabane.inria.fr ([128.93.8.160]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 08 Feb 2010 17:21:25 +0100 Cc: caml-list@inria.fr Message-Id: <5CA6B9AC-5046-45DC-91EE-513408ADBAA6@inria.fr> From: Damien Doligez To: Kihong Heo In-Reply-To: <183EEC97-A33D-4E84-81B1-B908BD998351@ropas.snu.ac.kr> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Caml-list] out of memory error Date: Mon, 8 Feb 2010 17:21:25 +0100 References: <183EEC97-A33D-4E84-81B1-B908BD998351@ropas.snu.ac.kr> X-Mailer: Apple Mail (2.936) X-Spam: no; 0.00; damien:01 damien:01 ocamlrun:01 ocaml:01 runtime:01 ocamlrun:01 explicitely:01 command-line:01 doligez:01 doligez:01 wrote:01 caml-list:01 caml:02 debugging:03 shell:04 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