Arduino and D

Mike via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 25 16:48:31 PDT 2014


On Saturday, 25 October 2014 at 22:55:12 UTC, Israel wrote:
>
> Well it is ARM so it should be possible.

There is a significant difference between ARM and ARM Thumb.

ARM (which shares the name of ARM Ltd.) is the architecture 
primarily used for devices like smartphones, credit card PCs 
(Raspberry Pi, BeagleBone Black, etc...) and other portable 
consumer devices.

ARM Thumb, on the other hand, is the architecture used for 
microcontroller programming like the Arduino.

ARM is a 32-bit instructions set, and ARM Thumb is 16-bit or a 
mixture of 16-bit and 32-bit instructions.  I've only done ARM 
Thumb programming, so I can't elaborate on the differences well, 
but I also believe the two have a different exception model and 
many other differences.

I believe the mainline druntime has pretty good support for ARM, 
but nothing at all for ARM Thumb.  One could probably use D 
pretty well for the Raspberry Pi, but they're going to have to 
make their own druntime to program the Arduino.

Mike


More information about the Digitalmars-d mailing list