Discussion Locked

REPLY AS SOON AS POSSIBLE:make compiler

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Sir/Ma'am,
I want to get guidence for how should i start if i want to be able to write a compiler ?
OR
you can say from where i should start learing Compiler Construction if i'm a beginner?
Thanks .

7 replies

by lo

Hi - just a general answer and a specific question. If you haven't yet done so try searcing for "writing a compiler" or words to that effect and sorting through the listings (see below).

Check with to your local book stores, Barnse & Knowble, CompUSA, BestBuy, Fry's Electronics, etc. (wherever computer books are sold), they have a reference that will assist.

Check with local Universities, Colleges and High Schools, at least one may should a course or have Building a Compiler as part of acourse (see below).

The question: Why? As far as I know (which may not be much) there are only 2 reason one writes a compiller (well OK, maybe more). 1) Many programming classes, (esp. C and Assembler, but there may be others), do this as final project / test. In many cases you have to write a compiler that will compile a new language or C. It is a really good learning experience but it also an awful lot of work. 2) The compiler writer thinks they have a "better mousetrap" and should build it and unleash it on the world. Sometimes it is a better mousetrap, and sometimes (more often than not) it is just a lot of work.

A couple of links from my search of above that looked promising:
1) http://www.cir.nus.edu.sg/~dkiong/live/compilers/

2)
http://www.cs.ualberta.ca/research/library/0-07-065166-3.html

3)
http://www.softpanorama.org/Bookshelf/compilers.shtml

lo

by amk_com

Well to tell you the truth the first answer doesn't leave anything to say. But if you willing to write a compiler and as a begginner you could start out by mastering or semi-mastering a programming language and for that language to start developing a compiler. A compiler's functionality depends on hash tables try reading that subject from a data structure book like (data Structures & program design in C++) if you're willing to do a compiler on C++ just give me a buz and i'm very willing to helpyou out.
Hope to hear from u soon. Bye

by ranarc

The earlier posts cover everything almost .. antways check out the book Compiler Construction for Digital Computers by David Gries. You'll find lots of funda in there.

Best of luck

This discussion is closed to new replies.