Can I help developing the C interface

Hello there,

in the post Passing a BigInt (mpz_t for GMP) array to C I tried in vain to pass a GMP number to C. Upon inspecting the memory, it became apparent that C stored the “chunks” of the big integer in adjacent memory blocks, whereas in Julia the number was scattered.

Firstly, it would be necessary to make the big integer accessible to C, so that passing it to C works, and receiving it also works.

But then, for speed reasons it would seem recommendable to have Julia also store the number chunks in adjacent memory blocks.

I would probably enjoy implementing this myself; the only problem is that I don’t quite know where this functionality is in the Julia code.

5 posts were merged into an existing topic: Passing a BigInt (mpz_t for GMP) array to C