Questions about FloatArrays
hmm at heeg.de
Fri Jun 12 14:22:48 UTC 1998
Luciano Esteban Notarfrancesco wrote:
> Having access to 'double *' from translated primitives alows doing sound
> analysis, high-quality speech synthesis and speech recognition... that's
> way all this is too important to me.
> Thanks in advance,
I would propose to go further than that and change the format of Floats
as well, to make all float-containing objects be usable from the
platform without special macros. This would require the image startup
code of the VM (which does the byte swapping) to be modified to swap
floats as well.
Alternatively, the code in the image that gets executed upon startup
could do the swapping, since it should not rely on functioning Floats.
However, this opens another, more difficult, question:
Since doubles on some platforms have to be 8-byte aligned, objects (at
least those potentially containing doubles) should probably be aligned
on 8-byte minus 4.
Would it be possible to modify the object memory to ensure this
alignment for variableWordSubclasses, at least?
More information about the Squeak-dev