From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 772857F75D for ; Fri, 31 Jan 2014 02:28:13 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.162; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.162 as permitted sender) identity=mailfrom; client-ip=134.160.33.162; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.162 as permitted sender) identity=helo; client-ip=134.160.33.162; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoIBAHz76lKGoCGinGdsb2JhbABZg0SDWLoeCoEgDgEBAQEBCAsJCRQogiUBAQEEIw8BBUARCxgCAgUWCwICCQMCAQIBRRMIAQGIAQ2rXqErEwSBKY1gFoJZgUkBA4lHjmGVWw X-IPAS-Result: AoIBAHz76lKGoCGinGdsb2JhbABZg0SDWLoeCoEgDgEBAQEBCAsJCRQogiUBAQEEIw8BBUARCxgCAgUWCwICCQMCAQIBRRMIAQGIAQ2rXqErEwSBKY1gFoJZgUkBA4lHjmGVWw X-IronPort-AV: E=Sophos;i="4.95,753,1384297200"; d="scan'208";a="56173155" Received: from postman2.riken.jp (HELO postman.riken.jp) ([134.160.33.162]) by mail2-smtp-roc.national.inria.fr with ESMTP; 31 Jan 2014 02:28:11 +0100 Received: from postman.riken.jp (postman2.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id 4276212601D3; Fri, 31 Jan 2014 10:28:08 +0900 (JST) Received: from watson.prg.gsc.riken.jp (ipm04.gsc.riken.go.jp [134.160.83.74]) by postman.riken.jp (Postfix) with ESMTPA id 105301270051; Fri, 31 Jan 2014 10:28:08 +0900 (JST) Message-ID: <52EAFC27.4010307@riken.jp> Date: Fri, 31 Jan 2014 10:28:07 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: caml-list@inria.fr References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.1.31.11816 Subject: Re: [Caml-list] any automated FFI bindings generators? On 01/30/2014 08:01 PM, Ömer Sinan Ağacan wrote: > Hi all, > > I want to be able to use some very big C libraries from OCaml and I > want to automate process of writing bindings as much as possible. What > are my options for this? Do we have any tools to generate bindings? I am not sure this is what you are looking for, but there is this in OPAM: ctypes -- Combinators for binding to C libraries without writing any C https://github.com/ocamllabs/ocaml-ctypes There is also this: cstruct -- access C structures via a camlp4 extension -- Best regards, Francois Berenger.