www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Apps for micrococontrollers

reply Shakirov Ruslan <shakirov.ruslan gmail.com> writes:
Can I write applications for microcontrollers such as AVR ATMega or ARM7 on
D language?
Aug 04 2011
parent reply Adam Ruppe <destructionator gmail.com> writes:
D isn't designed to run in 8 or 16 bit at all, but even with 32 bit,
in theory, it would work, but in practice i don't think any of the
compilers and runtimes are up to it right now.
Aug 04 2011
parent reply Andrew Wiley <wiley.andrew.j gmail.com> writes:
On Thu, Aug 4, 2011 at 10:37 AM, Adam Ruppe <destructionator gmail.com>wrote:

 D isn't designed to run in 8 or 16 bit at all, but even with 32 bit,
 in theory, it would work, but in practice i don't think any of the
 compilers and runtimes are up to it right now.
GDC's fork of Phobos and DRuntime is mostly ready for ARM, but GDC itself currently has a few bugs there. The most significant one is that it doesn't align struct/class fields correctly per the ARM ABI.
Aug 04 2011
next sibling parent Shakirov Ruslan <shakirov.ruslan gmail.com> writes:
Thanks.
Aug 04 2011
prev sibling parent Johannes Pfau <spam example.com> writes:
Andrew Wiley wrote:
On Thu, Aug 4, 2011 at 10:37 AM, Adam Ruppe
<destructionator gmail.com>wrote:

 D isn't designed to run in 8 or 16 bit at all, but even with 32 bit,
 in theory, it would work, but in practice i don't think any of the
 compilers and runtimes are up to it right now.
GDC's fork of Phobos and DRuntime is mostly ready for ARM, but GDC itself currently has a few bugs there. The most significant one is that it doesn't align struct/class fields correctly per the ARM ABI.
That's only true if Linux (or some other supported OS) is used. ARM7 could also mean the LPC2000 series, AT91SAM or similar ARM microcontrollers. Without massive changes phobos and druntime won't work on such systems. -- Johannes Pfau
Aug 05 2011