Nuo Yan

Problem Solved

Recent Posts

Tags

News


  • Follow me on twitter: @nuoyan
    Make a donation to this Blog by PayPal. Thanks!






    Nuo is currently a Software Development Engineer in a Seattle-based software company.




    Locations of visitors to this page

    The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my school or employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.


Community

Email Notifications

Archives

Notes on Compiler Constructions

Table of Contents:

1.       Introduction

2.       Overview of Compilers

3.       Scanner

4.       Parser and Code Generation

5.       Conclusions

 

Introduction:

This document briefly introduces the concepts and construction of programming language compilers. The document uses a simple programming language we named “D” for the purposes of this project, then goes through the process of constructing a full compiler for the “D” programming language. “D” only represents the name of the sample programming language used in this project, and has no relationship with any popular existing programming language. Code samples will be included in this document; however, since this document will be published on the Internet, to prevent future computer science students with similar assignments from plagiarizing any part of this paper, the full source code for the compiler project will not be included in this document. All source codes for the compiler in this document are written in C, and compiled using gcc in Unix/Linux. The source code has also been tested for compilation under Windows NT (including 2000, XP, and Vista) using Visual C++ (including 6.0, 2003, and 2005). The X86 assembly language code presented in this documents uses the Microsoft/ Intel standard, which is different from the GNU/AT&T standard in some respects. This document is neither a course requirement, nor an assignment. All contents represent the author’s personal interests and the author provides no warranty.

 

To view the full document, either:

  1. Download the attachment of this post, which is in *.zip format.

 

 

Comments

ikenna said:

send a brief notes about compilers in general for quick reference in my exams

# September 26, 2007 10:56 AM

Nuo Yan said:

Hi ikenna:

Different classes will have different difficulties. Some are easy and some are hard. The best way is to prepare your quick reference by going over the textbook or class handouts and summrize them.

I can't help much with this because I may not know or think of something that may be a point to be tested on your class.

Good luck!

Nuo

# September 26, 2007 5:47 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)