ARM bare-metal programming in D
Timo Sintonen
t.sintonen at luukku.com
Mon Oct 21 22:58:08 PDT 2013
On Tuesday, 22 October 2013 at 03:29:19 UTC, Martin Nowak wrote:
> On 10/22/2013 01:43 AM, Mike wrote:
Language Questions:
>> 1. Is D or WiLL D be a suitable language for these targets?
>
> I have successfully ran D programs on a STM32F1 and STM32F4.
>
>> 2. Is the D runtime required for bare metal programming? In
>> other words,
>> if the D runtime has not yet been ported to these targets, how
>> far can
>> one get using just D the language?
>
> The compiler needs quite some runtime support functions for
> certain language features (GC, AA, array ops...). D is
> targeting OS based machines currently. A lot of druntime (GC,
> threads, time) is not
> a good fit for bare-metal targets.
> You can still benefit a lot from the nicer C parts of D.
>
> https://bitbucket.org/timosi/minlibd
This repo contains a working environment for GDC. Just updated
some documents there. The sample program is not yet complete but
I have a working one and try to upload it today.
I have used this in STM32F407. 64 k rom and 64 k ram is enough to
run a small program.
More information about the Digitalmars-d
mailing list