If you do, can you share your experience?
e.g tool chains you use.
Thanks!
Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
October 03, 2022 Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
If you do, can you share your experience? e.g tool chains you use. Thanks! |
October 04, 2022 Re: Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Monday, 3 October 2022 at 23:00:28 UTC, mw wrote: >If you do, can you share your experience? e.g tool chains you use. Thanks! Hello, I haven't tested myself, but looks like the way to go is with LDC: https://wiki.dlang.org/D_on_AVR |
October 04, 2022 Re: Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ryuukk_ | On Tuesday, 4 October 2022 at 03:09:16 UTC, ryuukk_ wrote: >On Monday, 3 October 2022 at 23:00:28 UTC, mw wrote: >If you do, can you share your experience? e.g tool chains you use. Thanks! Hello, I haven't tested myself, but looks like the way to go is with LDC: https://wiki.dlang.org/D_on_AVR Nice, will check. |
October 04, 2022 Re: Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Monday, 3 October 2022 at 23:00:28 UTC, mw wrote: >If you do, can you share your experience? e.g tool chains you use. Thanks! I've done a one-off project for a custom board, which is essentially an Arduino plus a bunch of 74-series ICs. I was not successful with LDC because of issues with ISRs, slices and something else I can't remember. All or some of the issues may have been fixed since. GDC works well, though. You can even use the new GDC 12 branch. It segfaults on narrowing conversions, but that was easy to work around with casts. My current toolchain is GDC 12.2 for mingw-w64 host, binutils 2.39, avr libc 2.01, and a tweaked version of https://github.com/WebFreak001/avrd. |
October 10, 2022 Re: Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Monday, 3 October 2022 at 23:00:28 UTC, mw wrote: >If you do, can you share your experience? I finally decided to do a hello world and write up some info in my blog about it: http://dpldocs.info/this-week-in-d/Blog.Posted_2022_10_10.html#hello-arduino Might help you get started. |
October 10, 2022 Re: Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D Ruppe | On Monday, 10 October 2022 at 16:55:48 UTC, Adam D Ruppe wrote: >On Monday, 3 October 2022 at 23:00:28 UTC, mw wrote: >If you do, can you share your experience? I finally decided to do a hello world and write up some info in my blog about it: http://dpldocs.info/this-week-in-d/Blog.Posted_2022_10_10.html#hello-arduino Might help you get started. Hey Adam, About inline assembly with GDC and LDC, LDC supports GDC-style syntax since v1.21. See examples here: https://github.com/ldc-developers/druntime/pull/171/files cheers, |
October 11, 2022 Re: Has anyone run D program on Arduino? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D Ruppe | On Monday, 10 October 2022 at 16:55:48 UTC, Adam D Ruppe wrote: >On Monday, 3 October 2022 at 23:00:28 UTC, mw wrote: >If you do, can you share your experience? I finally decided to do a hello world and write up some info in my blog about it: http://dpldocs.info/this-week-in-d/Blog.Posted_2022_10_10.html#hello-arduino Might help you get started. Thanks Adam |