diff --git a/README.md b/README.md index f0782b2..8e26a1c 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,8 @@ This is the main repository for Colgm compiler. ## Repo Content -- [Bootstrap](./bootstrap/README.md) -> bootstrap - - still under development -- [Bootstrapped [WIP]](./src/README.md) -> src - - for bootstrap test, not useful +- [bootstrap](./bootstrap/README.md): still under development +- [src](./src/README.md): for bootstrapped compiler, not available now ## Bootstrapping Compiler diff --git a/src/README.md b/src/README.md index f9793c7..43e9e22 100644 --- a/src/README.md +++ b/src/README.md @@ -1,6 +1,6 @@ # Colgm Compiler -WIP. The compiled `.ll` file maybe malfunction. +Work in progress. ## Build @@ -9,3 +9,20 @@ First you need bootstrap compiler, then use this command: ```bash [path of the compiler] main.colgm -L . ``` + +And `out.ll` is generated, try `lli` or `clang`. + +## Run + +for `lli`(maybe crash on macOS, don't know why): + +```bash +lli out.ll main.colgm -l -a +``` + +for `clang`: + +```bash +clang out.ll -o colgm +./colgm main.colgm -l -a +```