Skip to content

A 2D rasterizer working with -betterC, designed for embedded devices

License

Notifications You must be signed in to change notification settings

htfy96/rasterizer-d-embed

Repository files navigation

Rasterizer-D-embed

Build Status license status

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 in d-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 under build/ directory
  • Use make test to link this library into test/ stubs and run tests.

Prefix make with DCC=ldc2 will build this project with ldc.

About

A 2D rasterizer working with -betterC, designed for embedded devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published