-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
26 lines (18 loc) · 788 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SGCC - Seth Gregory C Compiler
Seth Gregory, Final Project
December 14th / Extension Feb 4th
----------------------------------
A full automated test suite can be run by simply typing:
> make test
To compile SGCC and run manually, in the directory containing the source, type:
> make
Next, to run SGCC, invoke the program on a source file as shown below:
> ./sgcc test.c
or, for full verbose/debug output:
> ./sgcc test.c -v
The compiler will save a MIPS assembly file in the same directory as, and with the same filename as the C input program, but with a ".s" file extension.
Finally, to execute in spim, type:
> spim -file test.s
----------------------------------
Slides/Presentation can be viewed and downloaded at:
https://docs.google.com/present/view?id=ddzczn9r_30gh45cr9m