Re: Having trouble finding texts on compiler construction.

"Dean Wakerley" <dwnewsgroups@tiscali.co.uk>
Sat, 18 Apr 2009 12:19:29 +0100

          From comp.compilers

Related articles
Having trouble finding texts on compiler construction. ryan.mccoskrie@gmail.com (Ryan McCoskrie) (2009-04-12)
Re: Having trouble finding texts on compiler construction. nmh@T3X.ORG (Nils M Holm) (2009-04-14)
Re: Having trouble finding texts on compiler construction. gneuner2@comcast.net (George Neuner) (2009-04-17)
Re: Having trouble finding texts on compiler construction. dwnewsgroups@tiscali.co.uk (Dean Wakerley) (2009-04-18)
Re: Having trouble finding texts on compiler construction. lkrupp@indra.com (Louis Krupp) (2009-04-19)
Re: Having trouble finding texts on compiler construction. sh006d3592@blueyonder.co.uk (Stephen Horne) (2009-04-20)
Re: Having trouble finding texts on compiler construction. jthorn@astro.indiana.edu (Jonathan Thornburg) (2009-04-20)
Re: Having trouble finding texts on compiler construction. torbenm@pc-003.diku.dk (2009-04-21)
Re: Having trouble finding texts on compiler construction. bear@sonic.net (Ray Dillinger) (2009-04-22)
Re: Having trouble finding texts on compiler construction. DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-04-24)
[2 later articles]
| List of all articles for this month |
From: "Dean Wakerley" <dwnewsgroups@tiscali.co.uk>
Newsgroups: comp.compilers
Date: Sat, 18 Apr 2009 12:19:29 +0100
Organization: Compilers Central
References: 09-04-015
Keywords: books
Posted-Date: 19 Apr 2009 18:33:25 EDT

I have these:


"Compiler Construction", Niklaus Wirth, ISBN 0-201-40353-6. Written by the
creator of pascal, modula-2, oberon. Small book, 176 pages. There are a few
diagrams but you're not missing anything. Develops an minmal oberon
compiler. Like his languages Wirth's style is the master of concise
simplicity. Available for download here:
http://www-old.oberon.ethz.ch/WirthPubl/CBEAll.pdf. More oberon books here:
http://www.oberon.ethz.ch/bibliography/publications#Wir89.


"Writing Compilers & Interpreters" (1991), Ronald Mak, John Wiley & Sons
Inc. ISBN 0-471-50968-X. Develops a pascal compiler written in C. There are
the odd diagrams and pascal syntax diagrams (don't be put off) but most in
prose and source code. Develops ideas in steps with runnable programs in
each step. There are newer editions in C++ and java. The C++ edition is 2-3
times more pages and unless you are a sado-masochist or worship the devil
avoid C++ (definitely view before you but). I've not seen the java edition.


"A Retargetable C Compiler: Design and Implementation", Christopher Fraser,
David Hanson, Addison-Wesley. ISBN 0-8053-1670-1. Text and source explains
how to write a c compiler. There few diagrams and formal mathematics (logic
formulae). Harder read than the previous. C is not the best language to
demonstrate compiler construction mainly because it was designed to be
easily implemented on resource restricted machines back in the 1960s. I
think C (and its mutations) compilers should be considered only after you've
got the understanding with a pascal/modula-2 compiler. It will be easier and
you'll learn good habits.


I've heard these are leaders in the field (more academic) but I don't
possess copies:
"Engineering a compiler", Keith Cooper, Linda Torczon, Morgan-Kaufmann. Not
seen.
"Modern Compiler Design", Dick Grune, Henri Bal, Ceriel Jacob ... John Wiley
& sons. This does have diagrams you complain of.
"Modern compiler implementation", Andrew Appel ... Cambridge University
Press. Not seen but the are C, Java, and ML versions.


Hope this is helpful,
Dean




"Ryan McCoskrie" <ryan.mccoskrie@gmail.com> wrote in message
news:09-04-015@comp.compilers...
> I'm trying to find some good text on compiler construction that don't
> explain things in terms of visual information (trees etcetera) and
> maths(which boils down to processing visual information).
>
>
> The reason to this is that I have a rare disability called NLD (Non-verbal
> Learning Disorder) which essentially means that the only parts of my brain
> that act as they should are the ones that deal with interpreting speech.
>
> Put it this way, Perl syntax makes sense but depth perception doesn't.
>
>
> I have tried reading the dragon book but most of it revolved around
> the diagrams. Does anyone know of a text that I could follow? I have
> found a couple of lex and yacc tutorials that have got me to some
> distance but not beyond making interpreters for calculators.
>
> --
> Quote of the login:
> "Nuclear war can ruin your whole compile." -- Karl Lehenbauer



Post a followup to this message

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