|[2 earlier articles]|
|Re: how to write a compiler firstname.lastname@example.org (2003-07-04)|
|Re: how to write a compiler email@example.com (2003-07-13)|
|Re: how to write a compiler firstname.lastname@example.org (Michael Meissner) (2003-07-15)|
|Re: how to write a compiler email@example.com (2003-07-17)|
|Re: how to write a compiler firstname.lastname@example.org (Alex McGuire) (2003-07-25)|
|Re: how to write a compiler email@example.com (2003-07-31)|
|Re: how to write a compiler firstname.lastname@example.org (2003-07-31)|
|Re: how to write a compiler email@example.com (Erik Trulsson) (2003-08-04)|
|Re: how to write a compiler firstname.lastname@example.org (Ivan Boldyrev) (2003-08-10)|
|Re: how to write a compiler email@example.com (2003-08-15)|
|Re: how to write a compiler firstname.lastname@example.org (Christian Bau) (2003-08-20)|
|Re: how to write a compiler email@example.com (2003-08-23)|
|From:||firstname.lastname@example.org (Suresh Kumar J)|
|Date:||31 Jul 2003 12:46:18 -0400|
|Posted-Date:||31 Jul 2003 12:46:18 EDT|
> i'm taking up a 6 month term project in my bachelor's degree
> course.can someone tell me the roadmap for writing a complier.and also
> suggest the language(maybe c,java etc..or develop a custom
> lang??)....plus is it a good idea to try for translators(c to
> java,MSIL to java bytecode etc...)in the same semester??
Writing a compiler in 6 months by a single person may not be possible.
You may want to try a part of it.
To start with I suggest to read the Dragon book and "Modern Compiler
Implementation using C" by Appel.
BTW, To the best of my knowledge, a lot of compiler projects are being
taken up by students as their academic projects. Why not trying to
write a tool in the decompiler or binary translator domain ? Its just
the reverse process of a compilation !
May be you can write an object dumper which dumps object code of a
particular processor/file format. You can upgrade it to support more
targets/file formats based on the time availability. Think about it.
Suresh Kumar J email@example.com
Sankhya Technologies Private Limited http://www.sankhya.com
[I suspect that if you were to write your compiler in a language like
Perl or Scheme rather than C, doing it in six months wouldn't be all
that hard. When I was an undergrad 30 years ago (egad!) I wrote a
surprisingly good APL->Basic compiler as a class project that did a
bunch of loop combining optimizations that I didn't realize were then
beyond the state of the art. But I wrote the compiler in Trac, which
can be an extremely productive language if your brain works that
Return to the
Search the comp.compilers archives again.