slideshow 1

Laboratory 8

In laboratory 8 you will be performing code generation for the x86 architecture. Start by downloading the laboratory 8 template. This template contains a lexer and parser for the csem intermediate form and contains many support routines for code generation. For this lab you will need to generate working code for the test example named "test.t". The provided make file will build the example intermediate form into an executable by combining its resulting assembly with the file "test.c" and compiling both using GCC (using "make test").

Laboratory 7

 In laboratory 7 you will be investigating the the Application Binary Interface (ABI) specifications for several different architectures. To complete this laboratory you will need to find out the following information about three different processor architectures:

Laboratory 6

 Laboratory 6 is an introduction to the csym compiler framework. Begin the laboratory by downloading the csym source code and compile the source code by issuing "make" in your console. This should build an executable named "csym" that can be tested by issuing "make test" in your console. At this point the executable will fail with an error because you have not finished the laboratory yet.

Laboratory 5

In laboratory 5 you will create a lexer and parser combination for a simple calculator language using the Antlr parser generator tools. Using Antlr, you will create a Java based lexer and parser that reads in an expression from the command line and outputs the value of that expression. Additionally, you will learn to use the AntlrWorks tools to help debug your parser.

Laboratory 4

In the fourth laboratory you will be constructing a yacc parser and connecting it to the scanner that you constructed in the third laboratory. The purpose of the laboratory is to create a function call dependency graph. For instance, given the source code show in figure 1 you should produce the graph show in figure 2.

Pages

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer