Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 529 Bytes

README.md

File metadata and controls

12 lines (11 loc) · 529 Bytes

rust-microc

This is a WIP compiler for microc (a small C dialect). Written for learning purposes only.

Dependencies

To run a compiled version of the compiler you'll need gcc and nasm.
To use the project from sources you'll need the Rust toolchain and the above dependencies.

Things to do

  • Modify the code generation algorithm to use registers instead of the stack for arithimetic operations.
  • int64 support.
  • better FFI.
  • strings, arrays and pointers.
  • Refactor bytecode to x86_64 code.