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
  • libc dependency Honey via Digitalmars-d-learn
    • Re: libc dependency Adam D. Ruppe via Digitalmars-d-learn
      • Re: libc dependency Honey via Digitalmars-d-learn
        • Re: libc depende... Steven Schveighoffer via Digitalmars-d-learn
          • Re: libc dep... Moritz Maxeiner via Digitalmars-d-learn
            • Re: lib... Steven Schveighoffer via Digitalmars-d-learn
              • Re:... H. S. Teoh via Digitalmars-d-learn
              • Re:... Moritz Maxeiner via Digitalmars-d-learn
              • Re:... Jacob Carlborg via Digitalmars-d-learn
                • ... Steven Schveighoffer via Digitalmars-d-learn
                • ... Jacob Carlborg via Digitalmars-d-learn
              • Re:... Steven Schveighoffer via Digitalmars-d-learn
            • Re: lib... Nemanja Boric via Digitalmars-d-learn
              • Re:... Moritz Maxeiner via Digitalmars-d-learn

Reply via email to