Skip to content

woonmoon/C_to_MIPS_Compiler

 
 

Repository files navigation

langproc-2019-cw-Jetstream

C-to-Python Translator

Translates a subset of pre-processed C90 into Python.

Program build and execution

Build using the command:

make bin/c_compiler

The translator function is invoked using the flag --translate, with the source file and output file specified on the command line:

bin/c_compiler --translate [source-file.c] -o [dest-file.py]

A script to run some tests: ./run.sh

A compiler for the C language

Reads C source code from a file, and write MIPS assembly to another file.

Program build and execution

Built using the command:

make bin/c_compiler

The compilation function is invoked using the flag -S, with the source file and output file specified on the command line:

bin/c_compiler -S [source-file.c] -o [dest-file.s]

A script to run some tests: ./mipstesting.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.2%
  • Yacc 15.3%
  • C 12.3%
  • Shell 3.0%
  • Lex 2.6%
  • Makefile 0.6%