On Sun, 23 Sep 2001, Simon Cozens wrote:

> On Sun, Sep 23, 2001 at 02:17:40AM +0300, Jarkko Hietaniemi wrote:
> > unaligned access
> 
> Bother. It is as I feared. 
> 
> Dan, we need to do something about this. The choices are: put floats into the
> constant section, or ensure instructions are assigned on an appropriate
> boundary. I can see pros and cons of both.

Floats in the constants section. What I'm thinking is that all constants
*except* integers go in the constants section, and we inject in the
instruction stream an offset in the constants section wherever we'd put
the constant. That way we can fix the alignments as appropriate if we have
to.

This needs doing for strings, and once we get fancier
(array/hash/list) constants we'll need it for them, too, so we might as
well go all the way now and be done with it. (This'll also make generating
the instruction stream a little easier and abstract out constants in
general in case we decide to do things completely differently at some
point)

                                        Dan

Reply via email to