htfy96 / rasterizer-d-embed

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Boost Software License 1.0


Languages

Language:D 84.5%Language:Shell 9.7%Language:Makefile 5.8%