2018-02-01 17:35:51 +01:00
|
|
|
 TLSF
|
|
|
|
=================
|
2018-01-16 05:25:03 +01:00
|
|
|
|
2018-02-02 03:07:54 +01:00
|
|
|
An implementation of the [Two Level Segregate Fit](http://www.gii.upv.es/tlsf/main/docs) memory allocator in AssemblyScript.
|
2018-01-16 05:25:03 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
```
|