aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKarsten Schmidt <k@postspectacular.com>2017-07-14 14:43:45 +0100
committerKarsten Schmidt <k@postspectacular.com>2017-07-14 14:43:45 +0100
commitcebcee692db504907901ddad4ac8342d296fc76e (patch)
tree802531039fee8ddbc9e26c2f27f578472b2fd800 /README.md
parentad15f9bba1efece0c8954484900e9e2c5338f711 (diff)
add readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
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
+```