[Vm-dev] Spur Object 64 bit format

Eliot Miranda eliot.miranda at gmail.com
Mon Nov 11 17:55:13 UTC 2013


On Sun, Nov 10, 2013 at 1:16 PM, Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com> wrote:

>
> The scheme is currently
> ...001 -> immediate int
> ...010 -> immediate char
> ...100 -> immediate double
>
> But with 64 bits, 62 remaining for immediate char, that makes many char,
> well too many compared to Unicode requirements...
> What about swapping pattern for char and double? I know it complicates a
> little bit the 32 <-> 64 image translation, but this gains one more bit for
> immediate double exponent that is otherwise unused for char.
> Also, there is room for more immediate values, for example a single
> precision float.
> Is there any interest?
>

I think an extra bit for immediate double is a good idea.   I'm not sure a
single precision float immediate is useful given immediate doubles; am I
missing something?



-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131111/37dcbfd1/attachment.htm


More information about the Vm-dev mailing list