Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jochasinga committed Oct 8, 2023
1 parent cf65ff0 commit b177f2f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ $ guile
> Enter `,help' for help.
> scheme@(guile-user)> (load "compiler.scm")
> scheme@(guile-user)> (compile-and-run '(primcall integer? 3))
> #t
>> #t
> scheme@(guile-user)> (compile-and-run '(primcall + 3 2))
>> int: 5
```
Instead of compiling to x86 Assembly, chum compiles to hand-rolled a WAT program.
Instead of compiling to x86 Assembly, chum compiles to hand-rolled WAT program and gets executed by the [runtime](https://github.com/jochasinga/chum-runtime).
Running `compile-to-wasm` procedure will compile an expression to a corresponding WAT in `modules/compiled.wat`.
Running `compile-to-wasm` procedure will compile an expression to a corresponding WAT in `modules/compiled.wat` without compiling to WASM binary and running.
```shell
> scheme@(guile-user)> (load "compiler.scm")
Expand All @@ -33,7 +35,7 @@ To invoke the runtime, run `compile-and-run`:
```shell
> scheme@(guile-user)> (load "compiler.scm")
> scheme@(guile-user)> (compile-and-run #\a)
> char: a
>> char: a
```
## components
Expand Down

0 comments on commit b177f2f

Please sign in to comment.