Experiment to see how difficult it is to write a libc replacement
A big flaw here is that thread locals are barely implemented, so errno is only
protected in Rust with spin::Mutex
๐ฌ
Enough functionality is implemented to run dbfi unmodified (except for the Makefile)
Only supports Linux(x86_64 and RISC-V)
Note that this requires a nightly compiler
- Cloyster - Cloyster C library
- Shellder - Rust implementation of C functions without exports
cargo build
...
gcc my_program.c -ffreestanding -nostdlib target/debug/libcloyster.a
./a.out
LGPLv2.1 OR LGPLv3 at your option