Last visit was: Fri Jul 19, 2024 5:58 am
It is currently Fri Jul 19, 2024 5:58 am

 [ 4 posts ] 
 How compiler are design 
Author Message

Joined: Fri Jun 09, 2017 10:25 am
Posts: 11
What is procedure of designing compiler how it work?

Mon Jun 12, 2017 9:12 am

Joined: Tue Dec 11, 2012 8:03 am
Posts: 285
Location: California
Your question is much too general to get very informative answers. However, you will need to consider the language you want to compile, and the processor into whose assembly or machine language you want it to compile the higher-level language into. You will need a very good knowledge of both. There is a book "Principles of Compiler Design," ISBN 0-201-00022-9. The fact that it has 614 pages should tell you how complex the subject is—and it's called "Principles of...," meaning there's a lot that the book does not cover! There's also the book, "Compilers: Principles, Techniques, and Tools," ISBN-10: 9332518661, which is 966 pages.

_________________ lots of 6502 resources

Mon Jun 12, 2017 10:05 am WWW

Joined: Wed Jan 09, 2013 6:54 pm
Posts: 1789
There's a good discussion on this thread:
The head post is negative about the dragon book, but the subsequent discussion is balanced and informative. One comment:
Don't read only the Dragon book if you're interested in compilers (or parsing in general). But it should be read, in addition to whatever else you read on the subject. It's classic for a reason.

There's a really good series of free books on aspects of modern software which includes a chapter or two about specific compilers - see
(You can pay for them too, if you like.)

Mon Jun 12, 2017 12:30 pm

Joined: Tue Apr 25, 2017 7:33 pm
Posts: 32
If you are after something short and easily digestible, then PCW Magazine had a very good article on the basics of compilers and parsers way back in 1988. The article was accompanied by a listing for a simple 'C--' compiler written in Modula 2.

I did a straight 'C' translation of the M2 source around that time and more recently uploaded it to I've put a copy of the original article there too:


Tue Jun 13, 2017 11:43 am
 [ 4 posts ] 

Who is online

Users browsing this forum: CCBot and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software