Rasterizer-D-embed
This project aims at creating a dependency-free (no libphobos/libruntime/libc) static library for 2D graphics on embedded devices.
It is still at very early stage.
Supported compilers and symbol dependency
This project works with -betterC
. Moreover, it only depends on a limited set of symbols in libc:
- First-class support for
ldc
. Symbol dependency:memset
,memcmp
,memcpy
and__assert
dmd
is also supported. Due to a bug,dmd
may generate calls to_memset*
defined ind-runtime
even with-betterC
. You can use the definition of them in d-runtime as a polyfill
d-rlib is a platform-independent implementation of memset
/memcmp
/memcpy
Build and Test
Currently it only supports building with dmd and testing on x86 with stubs provided under test
directory.
- Use
make builddebug
to build a dependency-free static library underbuild/
directory - Use
make test
to link this library intotest/
stubs and run tests.
Prefix make
with DCC=ldc2
will build this project with ldc.