Re: how to write a compiler

Erik Trulsson <ertr1013@student.uu.se>
4 Aug 2003 00:11:07 -0400

          From comp.compilers

Related articles
[3 earlier articles]
Re: how to write a compiler martinez_miguel@yahoo.com (2003-07-13)
Re: how to write a compiler mrmnews@the-meissners.org (Michael Meissner) (2003-07-15)
Re: how to write a compiler bonzini@gnu.org (2003-07-17)
Re: how to write a compiler alex@alexmcguire.com (Alex McGuire) (2003-07-25)
Re: how to write a compiler nicolas_capens@hotmail.com (2003-07-31)
Re: how to write a compiler suresh@sankhya.com (2003-07-31)
Re: how to write a compiler ertr1013@student.uu.se (Erik Trulsson) (2003-08-04)
Re: how to write a compiler boldyrev+nospam@cgitftp.uiggm.nsc.ru (Ivan Boldyrev) (2003-08-10)
Re: how to write a compiler p2sam@uwaterloo.ca (2003-08-15)
Re: how to write a compiler christian.bau@cbau.freeserve.co.uk (Christian Bau) (2003-08-20)
Re: how to write a compiler arargh308@arargh.com (2003-08-23)
| List of all articles for this month |

From: Erik Trulsson <ertr1013@student.uu.se>
Newsgroups: comp.compilers
Date: 4 Aug 2003 00:11:07 -0400
Organization: Compilers Central
References: 03-07-009 03-07-212
Keywords: practice
Posted-Date: 04 Aug 2003 00:11:07 EDT

Suresh Kumar J <suresh@sankhya.com> wrote:
> Hello,
>
>> 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??
>> samy
>
> Writing a compiler in 6 months by a single person may not be possible.


Why not? Writing a compiler is not all that difficult (assuming the
language being compiled isn't too large and complicated.) Writing a C
compiler singlehandedly in 6 months seems perfectly reasonable to
me. (Assuming one doesn't have to implement all the standard library
routines.) (A C++ compiler might be a bit too complicated, though.)


Writing a *good* compiler, on the other hand, is significantly more
difficult and time-consuming, but that wasn't the question.
--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.