Skip to content

warelle/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

About

C Compiler for CPU experiment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 51.2%
  • C 45.8%
  • Shell 1.5%
  • Makefile 0.7%
  • Perl 0.5%
  • Objective-C 0.2%
  • C++ 0.1%