Skip to content

lsIand/cmips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Information

Assignment for the 2016-2017 University of Edinburgh Compiling Techniques course.

Compiles a subset of the C language to MIPS. Not featured are: array accesses, struct field accesses, some other stuff probably.

The mark obtained for the lexer, parser, and generator together was 40/70.

C code snippets are in the tests folder.

Java Main class arguments are -gen path\to\inputfile path\to\outputfile (use -ast or -lexer instead of -gen to see additional information about the lexing and parsing processes).

E-mail: raimonwintzer@gmail.com || s1302265@sms.ed.ac.uk

MIPS MARS Simulator: http://courses.missouristate.edu/KenVollmar/mars/


Note: when running code on the MARS simulator, press enter twice after inputting a character, once for newline and once for confirm.

About

C to MIPS Compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published