aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 5f7007f74fe2440f4f6912c905496173713070fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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
```