Skip to content
Udon C Compiler: C compiler for our original CPU
C OCaml Python Makefile Standard ML Perl Other
Branch: master
Clone or download
Latest commit aa3c131 Nov 18, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin fix include directory order of ucc script Mar 13, 2015
extlib update submodule Mar 15, 2015
include add some function in string.h Mar 12, 2015
lib
src rename type.ml to typed_syntax.ml Mar 19, 2015
test don't emit fcmpeq and fcmpne Mar 12, 2015
.gitignore separate libc from libucc Feb 19, 2015
.gitmodules update .gitmodules for travis-ci Feb 3, 2015
.proverc
.travis.yml
Makefile separate libc from libucc Feb 19, 2015
README.md Update README.md Nov 18, 2016
travis-ci.sh add test-benz target Feb 3, 2015

README.md

UCC - Udon C Compiler Build Status

C compiler for GAIA CPU written in OCaml.

Requirement

  • OCaml >= 4.0.1
  • ocamlbuild >= 4.0.1
  • Clang (for preprocessing and syntax check)

Build

make

To run the tests, use the following command.

make test

Example

You can compile C file by the following command.

./bin/ucc ./test/printf.c

Then, a.out will be created. It runs on the simulator.

./bin/sim -simple a.out

You can check generated assembly by -S option.

./bin/ucc -S ./test/printf.c

If you want to see other options, please use -h option.

In addition, UCC can compile xv6 ported to GAIA, a simple Unix-like OS. Please use this Makefile to try it.

Article

You can’t perform that action at this time.