Link to home
Start Free TrialLog in
Avatar of meren
meren

asked on

compiler design using c++

how do design compiler using c++??please help us with some website for doing projects?
Avatar of nietod
nietod

You need to offer a reasonable amount of points for a question like this.

This is at least 20,000 points, possibly more.

There are books written on the subject. It would make mroe sense for you to read a book already written, rather than ask us to write you one.  Then if you have questions on what you've read, ask them here.
There is loads of stuff on the web about Compiler Design, much of it academic.  Compiler's are staple subject matter of many computing courses.  Type 'Compiler Design' into a search engine and you will find many examples.

A reasonable way to get started is to look at tools like Lex and Yacc (or the GNU equivalents, Flex & Bison).  These are tools designed to help you to write compilers.
Well, they are designed to heop you parse source code.  That is one of many difficult things that a compiler must do.
Well, they are designed to heop you parse source code.  That is one of many difficult things that a compiler must do.
GCC is an open source compiler collection, and there are manuals online, which include info about how it does what it does.  It is also a very good compiler.  Although not as good a choice as reading a book on compilers from the point of view of understanding the design, you can learn a lot from this site.

http://gcc.gnu.org
eg http://gcc.gnu.org/onlinedocs/gcc_17.html#SEC174
Sorry, I should have mentioned that GCC is implemented in C, not C++; but it might be useful.
visit this site. You'll find some useful stuff.

Compilers and Compiler Generators an introduction with C++


http://cspt1.cs.ru.ac.za/compilers/

Download the textbook:

http://cspt1.cs.ru.ac.za/compilers/pdfvers.zip
To grasp compiler design (and see that it is in fact not so difficult as it seems) the following tutorial helped me a lot: www.iecc.com/compilers/crenshaw/

Also, get the "dragon book" (compilers principles, practise and tools by Ado, and a bunch of other authors). It will give you a great deal of insight.
ASKER CERTIFIED SOLUTION
Avatar of noescom
noescom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can try to obtain the source code to jikes from ibm.

http://oss.software.ibm.com/developerworks/opensource/jikes/

Jikes is a java compiler created in C++.
Dear meren

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "noescom"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: https://www.experts-exchange.com/commspt/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
Force accepted

** Mindphaser - Community Support Moderator **