mirror of
https://github.com/anoma/juvix.git
synced 2024-12-11 08:25:46 +03:00
cfc11fecc5
* [minic] Add minic-runtime for linking without libc The C generated by minic now depends on `minic-runtime.h`. There are two versions of this, one that depends on libc and one that doesn't (i.e standalone). The standalone runtime implements the minimal set of functions required for the tests to compile and run. The standalone runtime also contains a copy of https://github.com/wingo/walloc, a small memory allocator that's indended for use with WASM. The benefit of using the standalone runtime is that the resulting binaries are much smaller. For example the Nat example compiles to about 24k WASM binary with libc, the standalone version is 2.8k. This commit adds a dependency on https://hackage.haskell.org/package/file-embed for finding the path to the minic-runtime directory in tests. It does not add any additional transitive dependencies to the project. |
||
---|---|---|
.. | ||
libc | ||
standalone |