RFC: Pay-as-you-go, Portable D Runtime for Microcontrollers (and maybe more)

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Tue May 5 11:12:45 PDT 2015


On 5 May 2015 at 19:38, Johannes Pfau via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> I would probably split the runtime into at least two, probably three
> parts:
>
> * Compiler support library (object.d, gcc/*.d, exception
>   implementation) (module rt/ no module name)
> * Higher level library (portable, micro)
> * Hardware specific library (not portable, avr/ stm/)
>
> I think some basic portability between microcontrollers is useful. The
> compiler support library should be only a few 100 lines of code and
> should be without external dependencies. This way it's also useful for
> very small platforms (8bit) or use-cases where you inject code into
> other processes. It's trivial to port: we should have an ansi-c port
> and native ports should be implementable in 1-2 hours.
>

It should also be possible for compilations to succeed without
rt/typeinfo - and for the compiler to not assume they exist
(Type::builtinTypeInfo).


More information about the Digitalmars-d mailing list