SE209 Introduction

Lecture Slides:

PDF, PS, 4-up PS, 8-up PS


Almost any textbook on compilers gives an overview of the different phases of compilation.

The classic compiler textbook (also known as the "dragon book") is

  • A.V. Aho, R. Sethi, J.D. Ullman. Compilers: Principles, Techniques and Tools, (Addison-Wesley, 1986)

    A more modern introduction is:

  • A.W. Appel. Modern Compiler Implementation in Java. (Cambridge, 1998)

    Other References

    • The Compiler Connection is a good source of pointers and information about compiler-related issues.
    • The main newsgroup for general compiler discussions is comp.compilers - you can browse its archives on-line.

    Other Stuff.

    To check what a C++ compiler does to source code, try experimenting with the g++ compiler:
    • To view the code after pre-processing, but before compilation
        g++ -E file.cpp
    • To view the assembly code after compilation, but before linking:
      g++ -c file.cpp
      objdump -CSt file.o
    To view a Java bytecode file (called, say, file.class), try
      javap -c file

  • NUIM Logo James Power,
    Dept. of Computer Science
    Last revised: 7 February 2000