Diego Novillo wrote:
> Richard Henderson wrote on 06/08/06 16:36:
> 
> > As folks have pointed out down-thread wrt multi-dimensional arrays,
> > I think this is a rather poor idea.  Both for components and arrays.
> > 
> Yeah, multi-dimensional arrays are a problem.  I'm not sure I see the
> flattening of components as a problem.  Because we would need to take
> the address of inner fields?
> 
> > There are other options for this besides stack machine.
> > 
> Cool.  What would those be?

A list of subscripts.  So you'd have ARRAY_REF : ID (VAL^+)

You store the dimension of the array in its type, and then you know
that you have to read that number of values or identifiers from the
bytecode.

Sebastian

Reply via email to