diff options
| author | Karsten Schmidt <k@postspectacular.com> | 2017-07-14 14:43:45 +0100 |
|---|---|---|
| committer | Karsten Schmidt <k@postspectacular.com> | 2017-07-14 14:43:45 +0100 |
| commit | cebcee692db504907901ddad4ac8342d296fc76e (patch) | |
| tree | 802531039fee8ddbc9e26c2f27f578472b2fd800 | |
| parent | ad15f9bba1efece0c8954484900e9e2c5338f711 (diff) | |
add readme
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..5f7007f --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# thi.ng/talloc + +Tiny replacement for `malloc`/`free` in linear memory situations. + +## Building for WASM + +```sh +emcc -Os -s WASM=1 -s SIDE_MODULE=1 -o talloc.wasm talloc.c +``` + +```sh +wasm2wast --generate-names malloc.wasm > malloc.wast +``` |
