プロジェクト
概要
A compiler for a tiny (but growing!) subset of C, written in OCaml.
言語・ランタイム計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルNQCC - a not-quite-C compiler
This repo is no longer active. I'm working on a new version of NQCC - I'll link to it here once it's released!
A compiler for a tiny (but growing!) subset of C, written in OCaml.
Requirements
- Install OCaml and OPAM
- Configure OPAM
opam init
- Install dependencies:
opam install oasis
opam install batteries
opam install ounit # only needed for tests
Usage
- Build it
make
- To run it, invoke the
nqccscript in the project root
./nqcc /path/to/source.c
The compiled executable will be in the same directory as the source file, and have the same name (e.g. source in the example above).
Tests
ocaml setup.ml -configure --enable-tests # you only need to run this once
make test # run unit tests
./test_examples.sh # compile sample programs
You can also test against this test suite.
関連プロジェクトを探す
読み込み中…