Arduino and MCU Support

frasdoge frasdoge at gmail.com
Fri Jun 19 14:14:07 UTC 2020


On Friday, 19 June 2020 at 12:20:52 UTC, kinke wrote:
> AVR: https://wiki.dlang.org/D_on_AVR
> With recent official LDC packages, you don't need to build LLVM 
> and LDC yourself, AVR is supported out-of-the-box.
>
> ESP32: 
> https://wiki.dlang.org/D_on_esp32/esp8266(llvm-xtensa%2Bldc)_and_how_to_get_started
> This arch hasn't been upstreamed to LLVM yet and so needs their 
> LLVM fork, i.e., building it and LDC yourself.
>
> For some more infos, use the search function of this forum.

Thanks for the reply.

I'm having a bit of trouble understanding how to actually get 
started even with those links.

I've installed the latest LDC and LLVM releases for Windows, 
though the -mcpu does not have any AVR options out-of-the-box as 
you mentioned. Perhaps I've missed something, or will I need to 
build the binary myself using the flags for AVR?

If you could explain in greater detail I would very much 
appreciate it, as there is *very* little documentation elsewhere 
or even on this forum.

The ESP32 process seems more involved. Due to my inexperience in 
this area, I'm wondering that, if I need to build the binaries 
myself anyway, how I would set it such that it'll work with AVR 
and ESP32 at the same time with one installation?

I'm hoping to have an analogous experience as with C, where I 
simply write my code, specify my cpu target, and then program 
over serial.


More information about the Digitalmars-d-learn mailing list