[squeak-dev] 64Bit image on Squeak Cocoa 5.7.4 VM

Tobias Pape Das.Linux at gmx.de
Mon Apr 18 14:55:00 UTC 2011


Am 2011-04-18 um 16:45 schrieb David T. Lewis:

> On Mon, Apr 18, 2011 at 12:45:51PM +0200, Tobias Pape wrote:
>> 
[…]
>>> 
>> 
>> Can somebody me enlighten me on this?
>> How shall a VM be 32bit word- but 
>> 64bit pointer-size?
>> Is there any documentation on this?
> 
> Think of the VM as a program, just like any other program. And
> think of the object memory as a bunch of data, either arranged
> as an array of 32-bit values or an array of 64-bit values. It
> does not matter if you compile your program with 32-bit pointers
> (-m32) or 64-bit pointers (-m64), in either case your program
> can still access its data.
> 
> Sounds like magic, but that's all there is to it :)

But this implies that the VM does not treat object references as
pointers, and I had the impression that this has been the case.
Am I wrong?

So Long,
	-Tobias
PS: By this definition, it would be ‘easily’ possible to
 have a VM both execute 64 and 32 bit images, as they are
 just other datasets.


More information about the Squeak-dev mailing list