GSOC - Holiday Edition

Mike via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 31 18:18:38 PST 2014


On Wednesday, 31 December 2014 at 11:24:00 UTC, Dmitry Olshansky 
wrote:
>
> The key guy to get in touch though is Michael Franklin:
> http://dconf.org/2014/talks/franklin.html
> Would be great to know if he open-sourced some of his stuff.
>

My experiments in trying to "minimize" D for the ARM Cortex-M is 
here:
https://github.com/JinShil/D_Runtime_ARM_Cortex-M_study

The memory-mapped I/O pattern that was the key part of my 
presentation at DConf is here:
https://github.com/JinShil/memory_mapped_io
It was modeled after this paper:
http://yogiken.files.wordpress.com/2010/02/c-register-access.pdf

The few STM32 peripherals that I created with the memory-mapped 
I/O pattern for testing the proof of concept is here:
https://github.com/JinShil/stm32_registers

The code generator that I used to automate conversion of the 
datasheet from PDF to D code is here:
https://github.com/JinShil/stm32_datasheet_to_d

The minimal "Hello World" for ARM Cortex-M is here:
http://wiki.dlang.org/Minimal_semihosted_ARM_Cortex-M_%22Hello_World%22

Instructions for building a GDC ARM Cortex-M cross compiler is 
here:
http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler

Dicebot includes the ARM Cortex-M backend for LDC is the Arch 
Linux package:
https://www.archlinux.org/packages/community/x86_64/ldc/
Thanks Dicebot, I used it many times.

Those interested in using D for ARM Cortex-M microcontroller 
program should probably look at minlibd 
(https://bitbucket.org/timosi/minlibd)

Over the past year, my hopes for D gradually diminished.  I don't 
see a way to use D for microcontroller programming without making 
many concessions and compromises, wrapping C, or forking the D 
compiler/runtime and making your own dialect of the language.  
So, I'm sorry to say I'm bowing out of the D scene, at least for 
now.

Mike Franklin



More information about the Digitalmars-d mailing list