www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - wiki tutorial: D on esp32/esp8266(llvm-xtensa+ldc) and how to get

reply dangbinghoo <dangbinghoo gmail.com> writes:
hi,

I just added a simple tutorial to running D betterC on the 
popular ESP32/esp8266 IoT chip.

referenced with the Rust community's Rust on ESP32.

https://wiki.dlang.org/D_on_esp32/esp8266(llvm-xtensa%2Bldc)_and_how_to_get_started

As esp32 IDF is using newlib as it's libc, the druntime and 
phobos just simply won't build.

But betterC seems working, I didn't do with a very strong 
test(actually I don't know if there's betterC test case exists), 
so, just for fun with your own risk!


And, Can we do some work to support druntime building against 
with newlib? If this is true, many MCU would have(newlib supports 
many MCUs) a `real D` running on it.

---
Binghoo Dang
Nov 26 2019
next sibling parent Andrea Fontana <nospam example.com> writes:
On Tuesday, 26 November 2019 at 08:57:49 UTC, dangbinghoo wrote:
 hi,

 I just added a simple tutorial to running D betterC on the 
 popular ESP32/esp8266 IoT chip.

 referenced with the Rust community's Rust on ESP32.

 https://wiki.dlang.org/D_on_esp32/esp8266(llvm-xtensa%2Bldc)_and_how_to_get_started

 As esp32 IDF is using newlib as it's libc, the druntime and 
 phobos just simply won't build.

 But betterC seems working, I didn't do with a very strong 
 test(actually I don't know if there's betterC test case 
 exists), so, just for fun with your own risk!


 And, Can we do some work to support druntime building against 
 with newlib? If this is true, many MCU would have(newlib 
 supports many MCUs) a `real D` running on it.

 ---
 Binghoo Dang
That's great!
Nov 26 2019
prev sibling parent Zoadian <no no.no> writes:
On Tuesday, 26 November 2019 at 08:57:49 UTC, dangbinghoo wrote:
 hi,

 I just added a simple tutorial to running D betterC on the 
 popular ESP32/esp8266 IoT chip.

 referenced with the Rust community's Rust on ESP32.

 https://wiki.dlang.org/D_on_esp32/esp8266(llvm-xtensa%2Bldc)_and_how_to_get_started

 As esp32 IDF is using newlib as it's libc, the druntime and 
 phobos just simply won't build.

 But betterC seems working, I didn't do with a very strong 
 test(actually I don't know if there's betterC test case 
 exists), so, just for fun with your own risk!


 And, Can we do some work to support druntime building against 
 with newlib? If this is true, many MCU would have(newlib 
 supports many MCUs) a `real D` running on it.

 ---
 Binghoo Dang
I'm also interested in a esp32/esp8266 port of druntime/phobos. If you want to join forces ping me on discord or irc. -Zoadian
Nov 26 2019