Compilers (CS362 2004S)

Class 33: Translating Declarations and Expressions

Back to Detour: Type Checking (II). On to Translating Conditionals.

Held: Monday, 19 April 2004

Today we begin our serious consideration of the back end. In particular, we begin our consideration of the techniques used to translate expressions and assignment statements.

Notes:

Overview:

Translating Assignment

Complicating Factors

Translating Basic Expressions

Example: Adding two Expressions

Example: Translating a Variable Experession

Example: Translating a Constant Expression

Reflection

Back to Detour: Type Checking (II). On to Translating Conditionals.

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Wed May 5 11:47:13 2004.
The source to the document was last modified on Tue Jan 20 23:06:46 2004.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS362/2004S/Outlines/outline.33.html.

You may wish to validate this document's HTML ; Valid CSS! ; Check with Bobby

Samuel A. Rebelsky, rebelsky@grinnell.edu