3 ms·
i'm not sure which part of the post gave you the impression that it's linking against the one in system32. the author even says: > it's statically linking wit
by nice_byte 4y ago
i'm not sure which part of the post gave you the impression that it's linking against the one in system32. the author even says:
> it's statically linking with the CRT shipped with Visual Studio
that is, unless you know for a fact that they're wrong and clang uses the msvcrt from system32. in which case this seems like clang's fault?
- bjourne 4y agoHe updated the text after the article hit HN: https://web.archive.org/web/20220702095817/https://erikmcclure.com/blog/windows-malloc-implementation-is-a-trash-fire/ https://web.archive.org/web/20220702095817/https://erikmcclu... The C runtime shipped in Windows is called MSVCRT.DLL and the ones shipped in Visual Studio are called MSVCRxxx.DLL, where xxx is Visual Studio's version number. If he statically linked to MSVCRxxx.DLL (MSVCRxxx.LIB actually) then what version did he link to? The performance of malloc() differs between versions. Clang doesn't ship its own C/C++ runtime and certainly can link to MSVCRT.DLL. That is how legacy applications are built.