Initial TLSF implementation (example), see #15

This commit is contained in:
dcodeIO
2018-01-16 05:25:03 +01:00
parent d1fed692f6
commit 867e037ff0
7 changed files with 638 additions and 0 deletions

20
examples/tlsf/README.md Normal file
View File

@ -0,0 +1,20 @@
TLSF
====
A port of [Matt Conte's implementation](https://github.com/mattconte/tlsf) of the [TLSF](http://www.gii.upv.es/tlsf/) memory allocator to AssemblyScript.
Instructions
------------
To build [assembly/tlsf.ts](./assembly/tlsf.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
```
$> npm run build
```
Afterwards, to run the included [test](./tests/index.js):
```
$> npm install
$> npm test
```