druntime redesign

dangbinghoo dangbinghoo at gmail.com
Thu May 7 06:46:27 UTC 2020


On Wednesday, 6 May 2020 at 18:56:55 UTC, Denis Feklushkin wrote:
> On Wednesday, 6 May 2020 at 18:03:40 UTC, Jacob Carlborg wrote:
>
>>> It would be great to replace them. But this does not look as 
>>> a priority, because you can always use parts of any libc as a 
>>> static library for baremetal.
>>
>> You cannot. glibc doesn't fully support static linking, not 
>> even on Linux. For example, DNS lookup does not work/is not 
>> fully supported in a fully statically linked binary.
>
>
> "any libc" -> "any suitable libc" :-)
>
> (picolibc is my choise for this purposes)

for druntime to working with MCU platform, we probably can rely 
only on [newlib] or even [newlib-nano] style `libC`, and make all 
other things to OS APIs, although some RTOS has implemented 
several POSIX api, it's all only a subset of POSIX.

but the embedded programmer will happy if we support newlib-nano 
+ FreeRTOS or NuttX or Zephyr.


More information about the Digitalmars-d mailing list