[Vm-dev] 64-bit compilation beneath a 32-bit image...
David T. Lewis
lewis at mail.msen.com
Wed Oct 13 03:41:25 UTC 2010
On Tue, Oct 12, 2010 at 07:39:40PM -0700, John M McIntosh wrote:
> Ok, well I've not lately compiled a VM that runs as 64bit binary against a 32bit image. (july of this year).
> But yes if you asked for sizeof(long) you would get 4, so yes sizeof(long) (4) versus sizeof(void*) (8) would be different.
> And yes 5.7 minus most plugins did work when run as a 64bit executable.
> I've never compiled up a 64bit binary, 32bit image for Cog.
> But isn't there also the Squeak image word size to consider since it could be a 32bit vm running a 64bit image.
> Mind I didn't compile one of those up..
Actually, the image word size should be a non-issue here. A 64-bit
image works the same regardless of whether the interpreter was compiled
for a 32 or 64-bit host. It just runs a lot slower on a 32-bit interpreter.
I have gotten the FFI running successfully on a 64-bit image and 64-bit
interpreter, so all combinations of 32/64 bit images and hosts can be
made to work with FFI.
More information about the Vm-dev