[m-dev.] Re: pragma fact_table
Tyson Richard DOWD
trd at students.cs.mu.oz.au
Wed Feb 19 15:00:12 AEDT 1997
> Tyson Richard DOWD, you wrote:
> >
> > >
> > > For the case when index is a pointer, is it guaranteed to be aligned
> > > on a word boundary (i.e. so that at least the 2 least significant bits
> > > are 0)? The pointer is pointing to a struct defined as a global C
> > > variable, not to something on the Mercury heap.
> >
> > Sure hope so, since a lot of my code relies on it.
>
> Does it? I thought you were being a good boy and #if'ing such assumptions.
> (Well, actually I wasn't sure about the good boy part... ;-)
> I sure hope your code works with `NUM_TAG_BITS == 0'!
Not at the moment. Almost all the work is there, except the decoding,
which has to be done a bit differently for different numbers of tag
bits, which will be done (soonish).
--
Tyson Dowd # "Most people's C code should be indented
# six feet downward and covered with
trd at cs.mu.oz.au # dirt."
http://www.cs.mu.oz.au/~trd # - Blair Houghton, on C code indentation
More information about the developers
mailing list