https://github.com/Jiantastic/c-to-mips-compiler
C to MIPS Assembly Compiler
https://github.com/Jiantastic/c-to-mips-compiler
c-to-mips-compiler compiler mips-assembly
Last synced: 7 months ago
JSON representation
C to MIPS Assembly Compiler
- Host: GitHub
- URL: https://github.com/Jiantastic/c-to-mips-compiler
- Owner: Jiantastic
- Created: 2016-02-04T11:23:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T18:59:31.000Z (about 3 years ago)
- Last Synced: 2024-11-09T23:02:23.949Z (about 1 year ago)
- Topics: c-to-mips-compiler, compiler, mips-assembly
- Language: C
- Homepage:
- Size: 71.6 MB
- Stars: 102
- Watchers: 4
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeCompiler - c-to-mips-compiler
README
# c-to-mips-compiler
Compiles C code into MIPS Assembly. Source code is in the wjw13 folder
Takes in C code on `stdin`, spits out MIPS Assembly on `stdout`
Developed with good old [Flex](http://flex.sourceforge.net/) and [Bison](https://www.gnu.org/software/bison/)
Have a look at [VisualMips](https://visualmips.github.io/) if you would like to try out a web-based MIPS assembler!
## Usage
`cd c-to-mips-compiler/wjw13/ && make` builds the project
`cd bin && cat test1.c | ./c_compiler` for an example usage
You should now see some generated MIPS assembly code
.text
.align 2
.globl main
.ent main
.type main,@function
## References
'Dragon Book'