version (AVR)
Chloé Kekoa
rightfold+ck at gmail.com
Sun Jun 14 19:53:35 UTC 2020
I’m currently using D to program an ATmega328P microcontroller,
which interprets the AVR instruction set. Works quite well, but
there are some definitions missing from the core library, such as
a definition for c_long, when compiling for AVR. This makes it
impossible to import parts of the standard library that rely on
these definitions being there.
I’d like to add the missing features to druntime, but this
requires a version switch for AVR. Is there such a switch? If not
I could add it to LDC, would “AVR” be a good name?
For instance, the following code currently compiles, but ideally
shouldn’t:
version (AVR)
static assert(false);
Using ldc2 -mtriple=avr-atmel-none -mcpu=atmega328p
More information about the digitalmars-d-ldc
mailing list