1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-13 19:49:20 +03:00
juvix/test
Paul Cadman cfc11fecc5
Add minic-runtime for linking without libc (#113)
* [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.
2022-05-19 09:48:23 +02:00
..
BackendC Add minic-runtime for linking without libc (#113) 2022-05-19 09:48:23 +02:00
MonoJuvix New target syntax and modular VP examples (#92) 2022-05-06 12:45:09 +02:00
Scope Improve error generation and handling (#108) 2022-05-18 17:10:10 +02:00
TypeCheck New target syntax and modular VP examples (#92) 2022-05-06 12:45:09 +02:00
BackendC.hs Add C code generation backend (#68) 2022-05-05 14:12:17 +01:00
Base.hs [cbackend] run minic tests with clang+wasi-sdk (#105) 2022-05-16 16:17:28 +01:00
Main.hs Add C code generation backend (#68) 2022-05-05 14:12:17 +01:00
MonoJuvix.hs Monomorphization (#70) 2022-05-04 10:50:03 +02:00
Scope.hs [ CI ] New jobs: ormolu and hlint 2022-04-05 19:57:21 +02:00
TypeCheck.hs Implement type checker with polymorphism (#62) 2022-04-22 10:06:34 +02:00