Difference: CS255Spring11ProjectHome (2 vs. 3)

Revision 32011-01-21 - ChenDing

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

Project for CSC 255/455, Spring 2011

Line: 22 to 22
  svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_4_2_2_release gcc-4.2.2
Changed:
<
<
**step #2 Apply the cs255 patch file, which is in the class repository as projects/1_gcc/cs255.patch.
>
>
**step #2 Apply the cs255 patch file and copy in cs255.c. They are in the class repository under projects/1_gcc/base/.
 
   cd gcc-4.2.2
   cd gcc
Changed:
<
<
patch -i cs255.patch
>
>
patch -i [class_repos]/projects/1_gcc/base/cs255.patch cp [class_repos]/projects/1_gcc/base/cs255.c .
  cd ../..
Line: 67 to 68
 For testing, we use the test cases in directory projects/test_cases. You may use the results from them to check your code with your classmates. And they are very useful in following parts and final competition.

Automated testing

Changed:
<
<
You are provided with a testing harness at projects/1_gcc/base/test.rb. Suppose your current working directory is projects/1_gcc/paul, you can use ../base/test.rb ab.c /usr/bin/gcc to test the default gcc on the test ab.c (or any other file in test_cases), or you can use ../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.
>
>
You are provided with a testing harness at projects/1_gcc/base/test.rb. Suppose your current working directory is projects/1_gcc/paul, you can use

../base/test.rb ab.c /usr/bin/gcc

to test the default gcc on the test ab.c (or any other file in test_cases), or you can use

../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.

 

Submit your project

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.

 
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