Re: Teaching compilers backwards?

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

          From comp.compilers

Related articles
[11 earlier articles]
Re: Teaching compilers backwards? romesamo@earthlink.net (Rome Samo) (2004-03-19)
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:41 -0500
Organization: Comcast Online
References: 03-09-073 03-10-014 03-10-037 04-03-045 04-03-066 04-03-074
Keywords: courses
Posted-Date: 26 Mar 2004 21:24:41 EST

Lex Spoon wrote:


(snip)


> In case it's necessary, me too. I don't see the big problem. It is
> challenging to do a compiler in one semester, but it is doable if you
> work in pairs. I've some experience with compiler classes at two
> different (American) universities now. At both of them, students work
> in pairs and manage to build a complete compiler from end to end.


When I took a compiler course we had groups of four. Something like
lexical analyzer, syntax analyzer, code generator, and interpreter of
the generated code. The source language was a subset of Pascal.


When it got down to the last day, to be sure it would be done in time
(no credit if it was late), I did static allocation for variables and
return addresses. (I was more used to Fortran at that point.) It was
supposed to allow recursion, though, so we got an A-.


> Okay, well, the compilers tend to be buggy and to produce horrible
> code, but people do get to play with every phase of a compiler
> including a little bit of optimization.


I don't remember any bugs, but the code was probably pretty bad. It
was three address form, with no attempt at all to reuse memory
locations. We didn't do any optimization, but this was only a one
quarter course.


-- glen


Post a followup to this message

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