Re: Jack W. Crenshaw - Any clues how to optimize ?

mallors@ips1.msfc.nasa.gov (Robert S. Mallozzi)
19 Apr 1999 14:51:05 -0400

          From comp.compilers

Related articles
Jack W. Crenshaw - Any clues how to optimize ? prinz@c2i.net (XlatB) (1999-04-09)
Re: Jack W. Crenshaw - Any clues how to optimize ? torbenm@diku.dk (Torben Mogensen) (1999-04-18)
Re: Jack W. Crenshaw - Any clues how to optimize ? whitten@netcom.com (David Whitten) (1999-04-18)
Re: Jack W. Crenshaw - Any clues how to optimize ? mallors@ips1.msfc.nasa.gov (1999-04-19)
Re: Jack W. Crenshaw - Any clues how to optimize ? bill@megahits.com (Bill A.) (1999-04-22)
Re: Jack W. Crenshaw - Any clues how to optimize ? andersh@maths.lth.se (Anders Holtsberg) (1999-05-03)
Re: Jack W. Crenshaw - Any clues how to optimize ? mikee@cetasoft.cog (1999-05-07)
Parsing != (either 'recursive descent' or 'operator precedence') hunk@alpha1.csd.uwm.edu (1999-05-16)
| List of all articles for this month |
From: mallors@ips1.msfc.nasa.gov (Robert S. Mallozzi)
Newsgroups: comp.compilers
Date: 19 Apr 1999 14:51:05 -0400
Organization: http://www.msfc.nasa.gov/
References: 99-04-034
Keywords: optimize

XlatB <prinz@c2i.net> writes:
> I am working on simple compiler (currently only a "basic" to x86 asm
> converter). It is based on the model by Jack W. Crenshaw. (Author of
> "Let's build a compiler" or something very similar). I am having
> problems to accept the inefficiency on the expression calculations.
> ...


I too have read the Crenshaw series on building a compiler. I am
attempting to create an interpreter based on those articles. Yes,
even though there are already a plethora of interpreters, I am trying
my hand at it mostly as a learning experience. I know very little
about the structure of compilers and interpreters, and my question is
this: I have a look-ahead recursive descent parser for the interpreter
(based on the Crenshaw compiler) working, but it is becoming
increasingly difficult to implement the features I want with this
parser. Is this method a good one, and should I keep hacking away on
it, or is another method more suitable, such as parsing an entire line
(or file) into tokens, and then decoding those tokens? I guess the
question is a little vague, but I'd appreciate any words of wisdom
from the interpreter experts.


Regards,


-bob mallozzi
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert S. Mallozzi 256-544-0887
                                                                                                            Mail Code ES 84
Work: http://www.batse.msfc.nasa.gov/ Marshall Space Flight Center
Play: http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.