Difference: CS255Spring11ProjectHome (4 vs. 5)

Revision 52011-01-24 - ChenDing

Line: 1 to 1
 
META TOPICPARENT name="ChenDing"

Project for CSC 255/455, Spring 2011

Line: 8 to 8
 

Project 1. Trivial: Adding a pass in GCC

Changed:
<
<
20%, Individual Project, Due: Wed. Jan. 26 11:59pm
>
>
10%, Individual Project, Due: Wed. Jan. 26 11:59pm
 

Introduction

For a taste of the most widely used compiler, you will implement a simple pass inside GCC. If you follow the instructions below, the project should not take more than four hours. The purpose is to learn the process more than to learn the compiler. You will use a different compiler in later projects but the basic three-phase structure --- a front-end, a set of optimization passes, and a back-end ---is the same.

Line: 77 to 77
 ../base/test.rb all /user/bin/gcc

to test all C programs in the test directory. Some of the programs require inputs. The test harness provides the default inputs. You can test your cs255 compiler similarly by modifying test.rb, in particular, uncommenting the two lines marked in the file. In addition, supply your compiler in place of /user/bin/gcc as the second argument when running test.rb.

Changed:
<
<

Submit your project

>
>

Submit your project

 
Deleted:
<
<
Create a directory in the repository as projects/1_gcc/your_cs_user_id. Submit the source code (only the modified cs255.c for project #1), along with a report document, either in text or pdf, describing the design and implementation. Testing and the submission of testing results is done by test.rb. Stay tuned for an update.
 \ No newline at end of file
Added:
>
>
Create a directory in the repository as projects/1_gcc/your_cs_user_id. Submit the source code (only the modified cs255.c for project #1), along with a report document, either in text or pdf, describing the design and implementation.

Your report should contain the instruction counts generated by your compiler for all test programs with the standard inputs. Use the updated projects/1_gcc/base/test.rb (as of revision 28), which generates a summary of results when it is run with "all" as the second parameter. You should include the summary in the report.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback