Have one to sell? Sell yours here
PASCAL Compilers
  
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.

PASCAL Compilers [Hardcover]

Per Brinch Hansen


Available from these sellers.


Amazon.co.uk Trade-In Store
Did you know you can trade in your old books for an Amazon.co.uk Gift Card to spend on the things you want? Plus, get an extra £5 Gift Certificate when you trade in books worth £10 or more before June 30, 2012. Visit the Books Trade-In Store for more details.

Product details


More About the Author

Per Brinch Hansen
Discover books, learn about writers, and more.

Visit Amazon's Per Brinch Hansen Page

Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organise and find favourite items.
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 Reviews

There are no customer reviews yet on Amazon.co.uk.
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on Amazon.com (beta)
Amazon.com:  2 reviews
2 of 2 people found the following review helpful
The best compiler book! 1 Oct 2011
By Andrew Pape - Published on Amazon.com
Format: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.
1 of 1 people found the following review helpful
Practical Approach to Compiler Design 11 Nov 2009
By VJ - Published on Amazon.com
Format:Hardcover|Amazon Verified Purchase
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.

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


Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback