SIMPLE: A language-independent tree IR

Diego Novillo dnovillo@redhat.com
Wed Jan 2 15:07:00 GMT 2002


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.



More information about the Gcc mailing list