English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-12-21 (19:44)
From: Serge Aleynikov <serge@h...>
Subject: Re: [Caml-list] big_int
Sorry for extra noise - I found what I needed in the nat_stubs.c of the 
numeric library that comes in the sources of distribution.


Serge Aleynikov wrote:
> Greetings!
> I'm trying to figure out how to pass a big integer (encoded using GMP 
> library) from C to OCaml so that it could be read on the OCaml side 
> using Big_int module.  The interoperability macros listed in the manual 
> (http://caml.inria.fr/pub/docs/manual-ocaml/manual032.html) and in the 
> interoperability header files don't seem to have anything applicable for 
> Big_int's.
> Could someone point me to an example or resource of how to encode/decode 
> a Big_int from/to C?
> Thanks.
> Serge

Serge Aleynikov
Routing R&D, IDT Telecom
Tel: +1 (973) 438-3436
Fax: +1 (973) 438-1464