Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.08 KB

README.md

File metadata and controls

27 lines (16 loc) · 1.08 KB

vc, A Compiler for V

A compiler for METU CENG444's programming langauge v, for semester 20191. To see the reference of the language, click here.

vc is built with Rust, using the lalrpop parser generator, with LALR(1) mode enabled.

For now, vc only generates RISC-V 64 bit target code.

Requirements

Getting Started

In order to run the code, type cargo run -- compile examples/simple.v. This will generate simple.s file in the examples directory.

Then, type run.sh simple. This will automatically runs assembler and linker for the assembly file, and runs the target code using the rv8 simulator.

Authors

  • Ozan Akın