[Vm-dev] VM endianness

Clément Béra bera.clement at gmail.com
Wed Mar 18 20:18:17 UTC 2015


Well, based on what other people said, I think this is:

| f |
f := Float new.
f at: 2 put: 1.
WordArray adoptInstance: f.
f first = 1 ifTrue: [#little] ifFalse: [#big]

Thanks for your answers.

2015-03-18 21:08 GMT+01:00 stephane ducasse <stephane.ducasse at gmail.com>:

>
>
> Do you have a magic invocation that would not involved graphic objects?
> What would be cool is to have vm parameter or something like that. We want
> to reduce the dependencies in the core.
>
> At least it doesn't use BitBlt.  Its got much less dependencies than the
> existing code and is much simpler.  Isn't that worth something?
>
>
> No need to use Bitmap if that’s a real problem - make a trivial class that
> is ArrayedCollection variableWordSubclass:#EndianTestThing and use that.
>
>
> How?
> By construction if I asked this is that I did not know.
>
> Stef
>
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: AG: Add Gibberish
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150318/a8c2710c/attachment.htm


More information about the Vm-dev mailing list