aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+```