Teaching compilers and programming languages together...

ssimmons@convex.convex.com (Steve Simmons)
Mon, 23 Jan 1995 06:35:29 GMT

          From comp.compilers

Related articles
Teaching compilers and programming languages together... aronov@ziggy1.poly.edu (1995-01-10)
Teaching compilers and programming languages together... ssimmons@convex.convex.com (1995-01-23)
Re: Teaching compilers and programming languages together... djohnson@seuss.ucsd.edu (1995-01-24)
Re: Teaching compilers and programming languages together... eifrig@beanworld.cs.jhu.edu (1995-01-25)
Re: Teaching compilers and programming languages together... markta@aol.com (1995-01-26)
Re: Teaching compilers and programming languages together... mslamm@pluto.mscc.huji.ac.il (1995-01-30)
Re: Teaching compilers and programming languages together... mslamm@pluto.mscc.huji.ac.il (Ehud Lamm) (1995-02-03)
Re: Teaching compilers and programming languages together... chs@cs.uoregon.edu (1995-02-06)
| List of all articles for this month |
Newsgroups: comp.compilers
From: ssimmons@convex.convex.com (Steve Simmons)
Keywords: courses
Organization: CONVEX News Network, Engineering (cnn.eng), Richardson, Tx USA
References: 95-01-040
Date: Mon, 23 Jan 1995 06:35:29 GMT

aronov@ziggy1.poly.edu (Boris Aronov) writes:


> I almost exploded when I found out that in our undergraduate CS program
> Programming Langages (PL) course does not seem to be a prerequisite for
> Compilers (Comp). I have tried changing it and got an argument along the
> lines of 'In my days, **I** have taken Comp before PL and nothing bad
> happened to me.'


First, take it easy... You don't need a complete programming languages
course before taking a compiler course.


The major prerequisite for a compiler course is the ability to program
proficiently in one or more standard languages. That is, the student
must understand most common control and data constructs found in
C, Pascal, PL/1, etc.


The goal of the compiler should contain as you described and keep
consistent with today's mainstream languages.


> basic Comp stuff:scanning/parsing/ideas of code generation/
> correspondence between language features and
> what compiler has to do/implem. of some features




A compiler course can do a better job explaining this if you have
the time...


> basic PL concepts:param passing/scoping/contral structures


With parameter passing, it is easier to tell the students the implementation
differences among call by value, reference, and copy-in and copy-out.


Also, lexical scoping can be explained much easier by walking the
parse tree.


Thank you.




Steve Simmons


--


Post a followup to this message

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