[pypy-dev] Best FFI interface
Armin Rigo
arigo at tunes.org
Mon Jun 3 22:11:03 CEST 2013
Hi Timothy,
On Mon, Jun 3, 2013 at 8:55 PM, Timothy Baldridge <tbaldridge at gmail.com> wrote:
> I'm attempting to integrate my rpython interpreter with libgmp, and I'm a
> bit confused in how to call the library from my rpython code. it seems we
> have three ways?
>
> rlib.libffi (deprecated?)
> rlib.jit_libffi
> rlib.clibffi
You're looking at the wrong place. You should instead look at
rpython.rtyper.lltypesystem.rffi, which is minimally documented in
pypy/doc/rffi.rst. What you list above are ways to invoke libffi,
which is a C library to do dynamic calls. (Additionally, if the goal
is only to have ints of unlimited size in RPython, there is
rpython.rlib.rbigint.)
A bientôt,
Armin.
More information about the pypy-dev
mailing list