On 6/19/17 5:01 PM, Honey wrote:
On Monday, 19 June 2017 at 20:26:43 UTC, Adam D. Ruppe wrote:
On Monday, 19 June 2017 at 20:20:23 UTC, Honey wrote:
Is it correct that D produces executables that depend on libc?
Usually yes, since that makes sense for most programs on operating
systems, but you can pull it out if you want to for a specialized
task. (Really, same boat C is in.)
Thanks, Adam!
To elaborate on my second point: if one compares, say, FreeBSD's libc
[1] with glibc [2] it is pretty obvious that not all implementations are
optimized to the same degree.
Does it make sense - at least in cerain cases - to provide and use a D
implementation that is fast on all platforms, instead?
It does, but it depends on what you want to replace. What specifically
are you looking for?
IIRC, Tango did not depend on libc at all. It only used system calls. So
it certainly is possible.
-Steve