Re: Teaching compilers backwards?

glen herrmannsfeldt <gah@ugcs.caltech.edu>
26 Mar 2004 21:24:57 -0500

          From comp.compilers

Related articles
[12 earlier articles]
Re: Teaching compilers backwards? aycock@cse.cpsc.ucalgary.ca (John Aycock) (2004-03-19)
Re: Teaching compilers backwards? lex@cc.gatech.edu (Lex Spoon) (2004-03-19)
Re: Teaching compilers backwards? k301x@yahoo.com (dtf) (2004-03-19)
Re: Teaching compilers backwards? vbdis@aol.com (2004-03-19)
Re: Teaching compilers backwards? phf@cs.ucr.edu (=?ISO-8859-1?Q?Peter_Fr=F6hlich?=) (2004-03-19)
Re: Teaching compilers backwards? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-03-26)
Re: Teaching compilers backwards? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-03-26)
Re: Teaching compilers backwards? nr@eecs.harvard.edu (2004-03-26)
Re: Teaching compilers backwards? torbenm@diku.dk (2004-03-26)
| List of all articles for this month |

From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: 26 Mar 2004 21:24:57 -0500
Organization: Comcast Online
References: 04-03-045 04-03-078
Keywords: courses
Posted-Date: 26 Mar 2004 21:24:57 EST

VBDis wrote:


> <michael.l.ross@intel.com> schreibt:


>>And instead of having the kids write their own from scratch,
>>something they'll probably never do in their industrial careers, have
>>them pick up something like gcc, study it, and modify it.


> Do you really think that a student, with no experience with real
> compiler code, can understand a monster like gcc in reasonable time???


It depends on what you want to learn, but I would say probably not.
If you just want to learn to be able to port gcc to a different target
machine, it probably doesn't take so long, but do you really learn
enough about compilers?


I think lcc might be a better choice. It is documented well enough
that you might at least believe that you understand the different
parts without rewriting them. This only helps if you want to learn
how to retarget C compilers, though.


If you simplify the source language it doesn't take that long to learn
enough to write the compiler.


-- glen


Post a followup to this message

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