[Vm-dev] Re: [squeak-dev] 64 bit FFI...
goran at krampe.se
Fri Jan 18 11:52:01 UTC 2013
On 01/18/2013 12:50 PM, Mariano Martinez Peck wrote:
> On Fri, Jan 18, 2013 at 6:32 AM, Göran Krampe <goran at krampe.se
> <mailto:goran at krampe.se>> wrote:
> Hi folks!
> Just want to check with you guys how we are on the 64 bit VM front.
> I have a dynamic library that is 64 bits that I want to call using
> FFI (any FFI!). AFAICT this is a big no, no. NB FFI doesn't do 64
> bits, well, in fact NB is only available in Cog and Cog is only
> available in 32 bits, right?
> And even if Cog was available in 64 bits (Eliot?) I guess the NB FFI
> would need work to function in 64 bits too?
> Ok, so what about the standard VM 64 bit? It doesn't seem to have a
> working FFI plugin, so no go.
> I do not think I can get the lib in 32 bits (but I have asked
> upstream) it is the libhyperclient.so for HyperDex (www.hyperdex.org
> Could someone confirm the above or tell me about any other
> reasonable route?
> I think all you said is correct, unfortunately.
> The only solution I can think so far is what we always do: compile
> yourself the library (hyperdex in this case) forcing it to compile in 32
> bits (send the correct flags for compilation). But of course, if the
> library is intended to only work in 64 bits...then this doesn't work.
Yeah, just chatted with Eliot and he also confirms. Getting it to
compile in 32 is probably a bit hard, but I am asking upstream about it.
More information about the Vm-dev