Amazon.com: Brinch Hansen on Pascal Compilers (9780130830982): Brinch Hansen: Books

Buy Used
Used - Very Good See details
$47.41 & this item ships for FREE with Super Saver Shipping. Details

or
Sign in to turn on 1-Click ordering.
 
   
Sell Back Your Copy
For a $1.81 Gift Card
Trade in
Have one to sell? Sell yours here
Brinch Hansen on Pascal Compilers
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Brinch Hansen on Pascal Compilers [Hardcover]

Brinch Hansen (Author)
5.0 out of 5 stars  See all reviews (2 customer reviews)


Available from these sellers.


Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Hardcover --  
Paperback --  

Customers Who Bought This Item Also Bought


Product Details

  • Hardcover: 256 pages
  • Publisher: Prentice Hall (September 1985)
  • Language: English
  • ISBN-10: 0130830984
  • ISBN-13: 978-0130830982
  • Product Dimensions: 9.3 x 7 x 0.9 inches
  • Shipping Weight: 1.5 pounds
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Best Sellers Rank: #691,525 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

2 Reviews
5 star:
 (2)
4 star:    (0)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
5.0 out of 5 stars (2 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

1 of 1 people found the following review helpful:
5.0 out of 5 stars The best compiler book!, October 1, 2011
By 
Andrew Pape (Melbourne, Australia) - See all my reviews
(REAL NAME)   
This review is from: Brinch Hansen on Pascal Compilers (Hardcover)
This is a practical book, ideal for study. If you get stuck with other compiler books, don't hesitate to buy this one.

This book is undoubtedly the best compiler book. And I think it always will be. Brinch tells you the steps of creating a Pascal-like compiler, clearly stating the correct way to get the results. You don't need a PhD to create a compiler. If you follow the book, there are numerous code examples, and there is an entire listing in the appendix. The book has no typos, the code fragments are concise and understandable, and there is no missing code.

In about 1000 lines, a non-trivial compiler can be written. You can easily adjust the code to make your compiler of choice.

Some things to be aware of:

1) The book was written in the old DOS days. This is an advantage because the author had to keep the code small while making it as powerful as possible.

2) I expected the book to teach me how to compile to a DOS native EXE program. Unfortunately, it doesn't. The book is about creating interpretive-compilers, which involve a Virtual Machine. The VM used is simple, and is stack based. If you want an executable, you can still do it. You'd just have to write code that maps the virtual machine code to a real CPU. To do that, you'd need the specs of the CPU.

3) The book doesn't use object-oriented-programming. The procedural style of the code makes for easy reading and once you understand it, you will be in a good position to create your own language (even an OO one).

4) The Virtual Machine is stack-based. This results in ease of compiler creation. Most other compiler books are more advanced and use registers instead of stacks. You only need to use registers if you want to write an optimising compiler, which this book does not teach you.

5) The book uses a top-down, recursive descent, parser. This is the best way to handcraft a compiler. Many compilers use this type of parser. They are simple enough that you can easily code them. Most books on compilers teach too much theory, especially trying to explain DFA and then telling you that it's too hard to hand-code, so you should tools like lex and yacc. I've found it much better to simply hand-code these first 2 stages. In that way, you get a perfect knowledge of its workings.

6) The best method of error-recovery is given

7) There is some formal maths but the English explanations make it understandable.

Hopefully the publishers will reprint this book. Otherwise, grab a copy asap.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Practical Approach to Compiler Design, November 11, 2009
Amazon Verified Purchase(What's this?)
This review is from: Brinch Hansen on Pascal Compilers (Hardcover)
This is one of the best books in COmpiler design which would help you write a real compiler. It discusses the compiler construction in an implementation point of view.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Only search this product's reviews



Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 
(9)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject