Re: Teaching compilers backwards?

Rome Samo <romesamo@earthlink.net>
19 Mar 2004 23:44:58 -0500

          From comp.compilers

Related articles
[5 earlier articles]
Re: Teaching compilers backwards? joachim.durchholz@web.de (Joachim Durchholz) (2003-10-12)
Re: Teaching compilers backwards? peter_flass@yahoo.com (Peter Flass) (2003-10-13)
Re: Teaching compilers backwards? Brian.Inglis@SystematicSw.ab.ca (Brian Inglis) (2003-10-13)
Re: Teaching compilers backwards? michael.l.ross@intel.com (Michael Ross) (2004-03-11)
Re: Teaching compilers backwards? rand@rice.edu (Randy Crawford) (2004-03-15)
Re: Teaching compilers backwards? zork_666@nospammail.net (Johnathan) (2004-03-15)
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)
[3 later articles]
| List of all articles for this month |
From: Rome Samo <romesamo@earthlink.net>
Newsgroups: comp.compilers
Date: 19 Mar 2004 23:44:58 -0500
Organization: EarthLink Inc. -- http://www.EarthLink.net
References: 03-09-073 03-10-014 03-10-037 04-03-045 04-03-066
Keywords: courses
Posted-Date: 19 Mar 2004 23:44:57 EST

Johnathan wrote:
> I'm at the stage where I'm doing compiler construction and I agree.
> Compiler courses are very unsatisfactory because we don't write real
> compilers or really learn anything. By the time the exam is "last
> week," everything is pretty much forgotten. The course runs way too
> fast and everything is vague and abstract. If we're lucky we'll do a
> stupid YARPNC (Yet Another Reverse Polish Notation Calculator). ...


I agree with all that has been said regarding teaching compiler
development. Having been disappointed with the courses, I thought I
might get various and sundry books, and go it alone. This did not
really help much either, although it made more sense to me. It seems
to me that the best way of doing all this is to get one's hands dirty,
and, start generating code (via parsers, scanners), then going though
it.


One big problem for me is the actual generation of the backend code.
All the optimization required to created a high-quality compiler leaves
one exhausted.


Sure would be good if we could generate some kind of pcode, then have
all the guru's optimize it, and produce assembly for various processors.
    I have looked at a lot of pcode, and, frankly am not too excited about
what's out there. Rather than pcode generation, if we put our heads
together, and create a plain English verion of this, it sure would go a
long way. I guess what this means is to create a new pcode language
that is readable by human beings (text), and does not assume processor
architecture. The language should assume that there are registers,
stack, memory, and should be easy to look at.


The main point of all this is that, if one can create an easy-to-look-at
    interim code, then generate processor-specific assembly code from it,
that sure would be great.


Thanks


ADD8 REG.



Post a followup to this message

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