[rfc] coalesce stack slots

Richard Henderson rth@redhat.com
Tue Sep 7 20:08:00 GMT 2004


On Tue, Sep 07, 2004 at 01:22:09PM -0400, Nathan Myers wrote:
> I "won", but I still find it hard to articulate precisely why it
> was right.  If you can explain it, posterity might benefit.

Because if I'd wanted a stack, I'd have used an abstract
data structure named "stack", not one named "vector".

Or at least that's me.

Dunno about libstdc++, but vec.h isn't a replacement for an
array.  The *primary* thing that's missing is that there's
no way to set vec->num to an arbitrary value.  I.e. the
equivalent of malloc(nelt * size).


r~



More information about the Gcc-patches mailing list