View unanswered posts | View active topics It is currently Tue Oct 22, 2019 2:01 am



Reply to topic  [ 4 posts ] 
 How compiler are design 
Author Message

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


Mon Jun 12, 2017 9:12 am
Profile

Joined: Tue Dec 11, 2012 8:03 am
Posts: 271
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.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources


Mon Jun 12, 2017 10:05 am
Profile WWW

Joined: Wed Jan 09, 2013 6:54 pm
Posts: 1280
.
There's a good discussion on this thread:
https://news.ycombinator.com/item?id=14487961
The head post is negative about the dragon book, but the subsequent discussion is balanced and informative. One comment:
Quote:
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 http://aosabook.org/en/index.html
(You can pay for them too, if you like.)


Mon Jun 12, 2017 12:30 pm
Profile

Joined: Tue Apr 25, 2017 7:33 pm
Posts: 31
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 https://github.com/revaldinho/c--. I've put a copy of the original article there too:

https://github.com/revaldinho/c--/blob/master/CodeCompilationPCWSept1988.pdf


R.


Tue Jun 13, 2017 11:43 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

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