Skip to content

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

Notifications You must be signed in to change notification settings

gbrls/rust-microc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages