"masc0830.out" 416 lines, 8115 characters These are the results from running instructor's sample source files (with expected out): test0 Loaded: /opt/spim/bin/trap.handler 2 2 228 test1 - has a comment at the end of the file Loaded: /opt/spim/bin/trap.handler 3-132 test2 [has an error - would be "nice" to generate meaningful message] syntax error in simple.c Parse ERROR: NO CODE GENERATED test3 - make sure all the comments passed along in listing Loaded: /opt/spim/bin/trap.handler 2-18 Spr 2008 ------------------------------------ Phase1 results ------ The beginning of the file identifies your account name and the time stamp of the file named simple which is your Phase1 Compiler processing Ada-like comments. The listing file produced by your compiler is then followed by the SPIM code that your compiler generates, followed by the execution by SPIM itself. The grading rubric gives 9/10 (an A) for completing the assignment correctly and on time. You loose points for being late or incompleteness. We reserve the 10/10 for doing "something special", which is not specific beforehand. Instructor Comments on your Results: -------------------------------------------------------------------- Login name: masc0830 In real life: Stewart as CS524 student Directory: /home/ma/524.01/masc0830 Shell: /bin/csh Last login Tue Feb 12 16:50 on pts/19 from rohan.sdsu.edu No unread mail No Plan. -rwxr-x--- 1 masc0830 110880 Feb 6 11:26 /home/ma/524.01/masc0830/simple* -rwxr-xr-x 1 stewart 110880 Feb 12 17:03 simple* test data used for all tests will be 2 typed at keyboard ************************************************************ masc0830 simple test number test0 CS 524 - Phase 1 Tests Tue Feb 12 17:03:04 PST 2008 :q rohan.stewart:~/cs524/Grade/p1> !vi vi masc0830.out "masc0830.out" 416 lines, 8115 characters These are the results from running instructor's sample source files (with expected out): test0 Loaded: /opt/spim/bin/trap.handler 2 2 228 test1 - has a comment at the end of the file Loaded: /opt/spim/bin/trap.handler 3-132 test2 [has an error - would be "nice" to generate meaningful message] syntax error in simple.c Parse ERROR: NO CODE GENERATED test3 - make sure all the comments passed along in listing Loaded: /opt/spim/bin/trap.handler 2-18 Spr 2008 ------------------------------------ Phase1 results ------ The beginning of the file identifies your account name and the time stamp of the file named simple which is your Phase1 Compiler processing Ada-like comments. The listing file produced by your compiler is then followed by the SPIM code that your compiler generates, followed by the execution by SPIM itself. The grading rubric gives 9/10 (an A) for completing the assignment correctly and on time. You loose points for being late or incompleteness. We reserve the 10/10 for doing "something special", which is not specific beforehand. Instructor Comments on your Results: -------------------------------------------------------------------- Login name: masc0830 In real life: Stewart as CS524 student Directory: /home/ma/524.01/masc0830 Shell: /bin/csh Last login Tue Feb 12 16:50 on pts/19 from rohan.sdsu.edu No unread mail No Plan. -rwxr-x--- 1 masc0830 110880 Feb 6 11:26 /home/ma/524.01/masc0830/simple* -rwxr-xr-x 1 stewart 110880 Feb 12 17:03 simple* test data used for all tests will be 2 typed at keyboard ************************************************************ masc0830 simple test number test0 CS 524 - Phase 1 Tests Tue Feb 12 17:03:04 PST 2008 :$ # Finish up by writing out constants .word 0 CONST: #Constant storage area .data S0: .asciiz "\n" # # Reserve space for global variables .word 0 GVARS: # space for Global Variables .data _x: .word 0 # Offset at 0 .data _y: .word 0 # Offset at 4 .data Temp_Wr: .word 0 #just for alignment of write(exprtree) ******** Run through spim ********* SPIM Version 6.2 of January 11, 1999 Copyright 1990-1998 by James R. Larus (larus@cs.wisc.edu). All Rights Reserved. See the file README for a full copyright notice. Loaded: /opt/spim/bin/trap.handler 2-18