Skip to content

keiichiw/ucc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UCC - Udon C Compiler Build Status

C compiler for GAIA CPU written in OCaml.

Requirement

  • OCaml 4.0.1
  • ocamlbuild 4.0.1
  • Clang

Build

make

To run the tests, use the following command.

make test

Example

./bin/run ./test/fib-loop.c

If you want to see an assembly, run the following command.

./bin/ucc -S ./test/fib-loop.c

Then, ./test/fib-loop.s will be generated.

You can also run a test.

prove ./test/fib-loop.c