39 lines
1.0 KiB
Markdown
Raw Normal View History

2019-03-31 21:58:42 +02:00
AssemblyScript runtimes
=======================
2019-04-09 08:28:14 +02:00
None
----
```
$> asc ... --runtime none
```
[No runtime](./none.ts) features at all. Useful for building low-level modules that do not require language features like managed classes, or if you'd like to compose your own runtime by including a custom memory allocator and garbage collector.
* No memory allocator
* No garbage collector
Trace
-----
2019-03-31 21:58:42 +02:00
```
$> asc ...
```
2019-04-09 08:28:14 +02:00
The [trace runtime](./trace.ts) adds support for dynamic memory management and garbage collection to your program.
2019-03-31 21:58:42 +02:00
* [TLSF memory allocator](../allocator/tlsf.ts)
* [ITCM garbage collector](../collector/itcm.ts)
2019-03-31 21:58:42 +02:00
Arena
-----
```
$> asc ... --runtime arena
```
The [arena runtime](./arena.ts) is just enough to make most language features work, but doesn't have sophisticated support for freeing memory. Useful when prototyping or for simple one-shot modules in that it produces very small modules with minimal overhead.
* [Arena memory allocator](../allocator/arena.ts) with `memory.reset()`
2019-03-31 21:58:42 +02:00
* No garbage collector