aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-04-19 23:07:37 +0100
committerYann Herklotz <git@yannherklotz.com>2020-04-19 23:07:37 +0100
commitd4b07f44d83a73311096cd1b0bf99fe4227713b2 (patch)
tree5e67b3e86f43bc0f3387a59886273bc11afbe0ef /README.md
parent9de1618b3d378767232dc7423e843e4587a3579b (diff)
parent97396ce455f00f54d21f8176ad684be395dbf4e8 (diff)
downloadvericert-d4b07f44d83a73311096cd1b0bf99fe4227713b2.tar.gz
vericert-d4b07f44d83a73311096cd1b0bf99fe4227713b2.zip
Merge branch 'master' into develop
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8ce2cab..df65f8c 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,20 @@ To build the project on OSX, currently the makefile has to be manually edited so
sed -i'' 's/x86_64-linux/x86_64-macosx/' Makefile
```
+### Downloading CompCert
+
+CompCert is added as a submodule in the `lib/CompCert` directory. It is needed to run the build process below, as it is the one dependency that is not downloaded by nix, and has to be downloaded together with the repository. To clone CompCert together with this project, you can run:
+
+``` shell
+git clone --recursive https://github.com/ymherklotz/coqup
+```
+
+If the repository is already cloned, you can run the following command to make sure that CompCert is also downloaded:
+
+``` shell
+git submodule update --init
+```
+
### Setting up Nix
Nix is a package manager that can create an isolated environment so that the builds are reproducible. Once nix is installed, it can be used in the following way.
@@ -53,3 +67,13 @@ make install
```
Which will install the binary in `./bin/coqup` by default. However, this can be changed by changing the `PREFIX` environment variable, in which case the binary will be installed in `$PREFIX/bin/coqup`.
+
+## Running
+
+To test out `coqup` you can try the following examples which are in the test folder using the following:
+
+``` shell
+./bin/coqup test/loop.c -o loop.v
+./bin/coqup test/conditional.c -o conditional.v
+./bin/coqup test/add.c -o add.v
+```