From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 75929BC69 for ; Fri, 3 Aug 2007 21:30:24 +0200 (CEST) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.235]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l73JUNcr007602 for ; Fri, 3 Aug 2007 21:30:24 +0200 Received: by hu-out-0506.google.com with SMTP id 16so681029hue for ; Fri, 03 Aug 2007 12:30:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; b=eHGS3lLXC/ZaXpQNA0wOljzd1h//IQu69TufojZFAS9/YAEvWXLHF+6wo8CJyOgQTZ8MbVU9rm/QdoFYSeXQUNqhpgez/PE4p+jPq3RkYMfvDFwI6RshOTckJCdEv6K3zG1UAuRLlLMycgR7sbn33mhM4cfEY5jWKsmTjZexkVg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:from; b=m+qb/a9GEG2NN0NruQH7JC3C9IJ9xrNGWHHp66cALSM88p6MAWS3ch3G3yLiZT+geu5rJGbcEbTrB15k28WQ8IcxV0d4aqWNc7r2F1NrnMy/jceeqqOk7eCxtSRontOfD5yg7YAy7z4G6Ms5TfDK5xF1DD7i8tLtztikC41SPoo= Received: by 10.86.70.8 with SMTP id s8mr2471525fga.1186168513580; Fri, 03 Aug 2007 12:15:13 -0700 (PDT) Received: from localhost ( [82.122.232.94]) by mx.google.com with ESMTPS id j12sm6945540fkf.2007.08.03.12.15.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Aug 2007 12:15:11 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Fri, 03 Aug 2007 21:14:58 +0200 Date: Fri, 3 Aug 2007 21:14:58 +0200 To: Eric Merritt Cc: caml-list@inria.fr Subject: Re: [Caml-list] getting the system architecture Message-ID: <20070803191458.GA27116@jiyu.gnu> Mail-Followup-To: Julien Moutinho , Eric Merritt , caml-list@inria.fr References: <20070803151811.GA5501@jiyu.gnu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-11) From: Julien Moutinho X-j-chkmail-Score: MSGID : 46B3824F.002 on concorde : j-chkmail score : XX : 0/20 2 0.000 -> 2 X-Miltered: at concorde with ID 46B3824F.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ffi:01 ocaml:01 camlparam:01 bug:01 pointers:01 oreilly-book:01 garbage:01 wrote:01 caml-list:01 caml-list:01 caml:02 caml:02 merritt:02 figuring:02 reproduce:03 On Fri, Aug 03, 2007 at 09:54:17AM -0700, Eric Merritt wrote: > It actually helps a lot. I wasn't quite expect you to do it all for > me. Thanks, this saved me a bunch of time in doing it myself and > figuring out the ffi which I haven't used before. I owe you one. Just be careful to protect Ocaml values with CAMLparam* and to declare them with CAMLlocal* if you care about your sleep; 'cause the ``due to garbage collection'' bug may be hard to find or reproduce. A few pointers, if you haven't them already: http://caml.inria.fr/pub/docs/oreilly-book/html/index.html#chap-interop http://caml.inria.fr/pub/ml-archives/caml-list/2007/01/a169d698ad11a6017c87f2d98db860e6.en.html