This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIMPLE: A language-independent tree IR
On Wed, 02 Jan 2002, Joe Buck wrote:
>
> > - Every front-end rewrites its tree representation into SIMPLE.
> > Sebastian has already implemented some of the simplification
> > steps for the C front-end.
>
> How would structs be handled under this proposal? One option would
> be to explicitly generate the address arithmetic, but that has the
> effect of prematurely committing the struct to memory (one of the
> biggest reasons for g++'s inferiority compared to KAI).
>
No address arithmetic at all:
f = a.b[3].c.d[2][5].e t1 = &a.b;
t2 = &t1[3];
t3 = &(*t2).c.d;
t4 = &t3[2][5];
f = (*t4).e;
Diego.