Related articles |
---|
Generating Code for Compound Conditional Expressions from an Abstract seescreen@gmail.com (2009-06-02) |
Re: Generating Code for Compound Conditional Expressions from an Abstr torbenm@pc-003.diku.dk (2009-06-03) |
Re: Generating Code for Compound Conditional Expressions from an Abstr gene.ressler@gmail.com (Gene) (2009-06-03) |
Re: Generating Code for Compound Conditional Expressions from an Abstr seescreen@gmail.com (SeeScreen) (2009-06-14) |
Re: Generating Code for Compound Conditional Expressions from an Abstr seescreen@gmail.com (SeeScreen) (2009-06-20) |
From: | SeeScreen <seescreen@gmail.com> |
Newsgroups: | comp.compilers |
Date: | Sun, 14 Jun 2009 11:22:09 -0700 (PDT) |
Organization: | Compilers Central |
References: | 09-06-011 09-06-022 |
Keywords: | code |
Posted-Date: | 14 Jun 2009 19:11:28 EDT |
On Jun 3, 9:47 pm, Gene <gene.ress...@gmail.com> wrote:
> On Jun 3, 12:42 am, seescr...@gmail.com wrote:
>
> > Does anyone know of any links to any really good examples of:
> > Generating Code for Compound Conditional Expressions from an Abstract
> > Syntax Tree?
>
> The Red Dragon Book (Aho Sethi and Ullman) does a nice job with this.
Yes, the Red Dragon Book did prove to be an excellent source, this
time after spending weeks trying to figure this out on my own and re-
reading chapter eight yet another time, it was quite clear.
Although section on compound conditional expressions (pages 500-503)
provided a superb solution, it seems that I was able to improve upon
the way to process control flow statements discussed on pages 504-506.
I found no use what-so-ever for the nextlist construct, thus my
solution was exactly this much simpler.
Another aspect that I improved upon (that would certainly be out of
the scope of the original author's intention) was that I found a very
simple way to generate optimal jump code on the first pass.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.