3 ms·
From the discussion about the Rust stdlib I understood they deliberately build parts of it upon libc specifically because Windows has no stable API below their
by weinzierl 6y ago
From the discussion about the Rust stdlib I understood they deliberately build parts of it upon libc specifically because Windows has no stable API below their libc.
- ynik 6y agoRust doesn't make much use of libc on Windows; it mostly bypasses libc and makes direct calls to the Windows API. AFAIK it only uses a few functions like memcpy, memset, memcmp (LLVM itself emits calls to these) and the math library (sin, atan2 etc.) from the Microsoft libc.
- pjmlp 6y agoWindows is not an UNIX, libc belongs to the C compiler vendor. For example, the Windows way to clear memory is ZeroMemory() not memset().