mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 12:41:50 +00:00
Initial TLSF implementation (example), see #15
This commit is contained in:
20
examples/tlsf/README.md
Normal file
20
examples/tlsf/README.md
Normal 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
|
||||
```
|
Reference in New Issue
Block a user