|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
Directories | |
| cmake | |
| make | |
| meson | |
Three minimal "hello world" programs that link an installed libserene.runtime and run a fiber. Each builds with a different build system, and all three find the runtime through pkg-config, so they need no hard-coded paths.
They use only the substrate (memory manager, engine/context, fibers), so they work against a runtime built with the Serene language layer disabled:
That installs the headers under $prefix/include/serene/, the static library, and serene.runtime.pc. Point pkg-config at it:
Then build any of the examples:
Each prints:
Notes:
liburing dependency, so liburing.pc (the liburing-dev package) must be installed for pkg-config to resolve serene.runtime.serene.runtime.pc then also pulls in -DSRN_WITH_SERENE and LLVM, transparently.