Related articles |
---|
Making my first compiler szigetir@gmail.com (2006-09-16) |
Re: Making my first compiler pjb@informatimago.com (Pascal Bourguignon) (2006-09-18) |
Re: Making my first compiler tommy.thorn@gmail.com (Tommy Thorn) (2006-09-18) |
Re: Making my first compiler idknow@gmail.com (idknow@gmail.com) (2006-09-18) |
Re: Making my first compiler torbenm@app-1.diku.dk (2006-09-18) |
Re: Making my first compiler jeffrey.kenton@comcast.net (Jeff Kenton) (2006-09-25) |
Re: Making my first compiler firefly@diku.dk (Peter \Firefly\Lund) (2006-09-25) |
Re: Making my first compiler monnier@iro.umontreal.ca (Stefan Monnier) (2006-11-23) |
Re: Making my first compiler ValdoFerrari@libero.it (Valdo Ferrari) (2006-11-24) |
Re: Making my first compiler torbenm@app-0.diku.dk (2006-11-27) |
Re: Making my first compiler z2345678998765432y@sbcglobal.net (John) (2006-11-29) |
Re: Making my first compiler torbenm@app-3.diku.dk (2006-11-29) |
[5 later articles] |
From: | Jeff Kenton <jeffrey.kenton@comcast.net> |
Newsgroups: | comp.compilers |
Date: | 25 Sep 2006 01:14:38 -0400 |
Organization: | Compilers Central |
References: | 06-09-087 |
Keywords: | design |
Posted-Date: | 25 Sep 2006 01:14:38 EDT |
szigetir@gmail.com wrote:
> I'm trying to create a pascal subset interpreter/compiler.
>
> Do I HAVE to create a syntax tree? Or can I go straight to creating
> Intermediate Code (Quadruples) in Yacc's reduce actions?
You can definitely generate intermediate code directly. I've seen
compilers that do it, but it's not something that I recommend. You may
think it will speed up your compilation or save you work, but it's not
measurably faster and it especially complicates optimizations and the
linking together of conditional branching code.
Separate your compiler into sensible parts.
jeff
Return to the
comp.compilers page.
Search the
comp.compilers archives again.