Author Topic: Basics of Compiler Design  (Read 4988 times)

rdc

  • Guest
Basics of Compiler Design
« on: September 28, 2010, 09:42:12 AM »
The book Basics of Compiler Design has been updated. You can d/l the pdf or order a print version:

http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/


JRS

  • Guest
Re: Basics of Compiler Design
« Reply #1 on: September 28, 2010, 04:16:51 PM »
Quote
An interpreter is another way of implementing a programming language. Interpretation
shares many aspects with compiling. Lexing, parsing and type-checking are
in an interpreter done just as in a compiler. But instead of generating code from
the syntax tree, the syntax tree is processed directly to evaluate expressions and
execute statements, and so on. An interpreter may need to process the same piece
of the syntax tree (for example, the body of a loop) many times and, hence, interpretation
is typically slower than executing a compiled program. But writing an
interpreter is often simpler than writing a compiler and the interpreter is easier to
move to a different machine (see chapter 13), so for applications where speed is not
of essence, interpreters are often used.

With the speed of PCs these days it's hard to tell the difference between compiled and interpretive applications. (at least what I write for clients)

E.K.Virtanen

  • Guest
Re: Basics of Compiler Design
« Reply #2 on: October 02, 2010, 07:47:59 AM »
Neat link, thanks.