Re: Maintainable compiler design?

James Harris <james.harris.1@googlemail.com>
Thu, 6 Aug 2009 15:37:21 -0700 (PDT)

          From comp.compilers

Related articles
Maintainable compiler design? lerno@dragonascendant.com (=?ISO-8859-1?Q?Christoffer_Lern=F6?=) (2009-07-27)
Re: Maintainable compiler design? mhelvens@gmail.com (Michiel) (2009-07-29)
Re: Maintainable compiler design? cr88192@hotmail.com (BGB / cr88192) (2009-07-29)
Re: Maintainable compiler design? martin@gkc.org.uk (Martin Ward) (2009-08-06)
Re: Maintainable compiler design? james.harris.1@googlemail.com (James Harris) (2009-08-06)
| List of all articles for this month |

From: James Harris <james.harris.1@googlemail.com>
Newsgroups: comp.compilers
Date: Thu, 6 Aug 2009 15:37:21 -0700 (PDT)
Organization: Compilers Central
References: 09-07-102
Keywords: design
Posted-Date: 07 Aug 2009 09:45:42 EDT

On 27 July, 22:16, Christoffer Lernv <le...@dragonascendant.com>
wrote:
> I am working with my pet language, defining grammar, building runtime
> etc - the usual things.
>
> However, as this is my first complier, I am worried that I'm not
> organising the code well. Aside from the frontend/backend division, I
> feel the compiler books I red are sort of hazy in regards to how to
> solidly organize the compiler to ensure that it is easy to maintain. ...


There are some general programming principles: data hiding, modules,
narrow interfaces. Specifically for compilers the organisation of
Appel from his Modern Compiler Implementation books makes a lot of
sense. You don't have to use all the modules he lists. If you don't
have access to any of his books the set of modules is listed at


http://groups.google.co.uk/group/comp.lang.misc/browse_frm/thread/e05c599e42557e16/8b9443c60dc33309?hl=en


Look for message 71.


James



Post a followup to this message

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