7 ms·
Adding alternatives (perhaps not usable now for no one but the interested reader): LLVM decided to start building their own last year: https://llvm.org/docs/Pro
by jbergstroem 7y ago
Adding alternatives (perhaps not usable now for no one but the interested reader): LLVM decided to start building their own last year: https://llvm.org/docs/Proposals/LLVMLibC.html https://llvm.org/docs/Proposals/LLVMLibC.html
- deleted 7y ago[deleted]
- quotemstr 7y agoOf course they did.
- antiquark 7y agoLooks like llvm-libc is being written in C++. Which is... odd. https://github.com/llvm/llvm-project/tree/master/libc/src/string https://github.com/llvm/llvm-project/tree/master/libc/src/st...
- jupp0r 7y agoWhy ist that odd? It makes lots of sense to manage resources via RAII for example. C++ has really good C interop too.
- antiquark 7y agoIt forces you to include a C++ compiler in your toolchain, which might not be possible for older systems, etc.
- jfkebwjsbx 7y agoEvery system has a C++ compiler nowadays, and if they do not, you have plenty options to compile yourself one.
- kevin_thibedeau 7y agoNo they don't.
- jupp0r 7y agoDo you have an example? Keep in mind that we are not talking about the host platform here, but the target platform.
- whizzter 7y agoNot a problem for LLVM since it's linker is always a cross-linker so if you're targetting a new (or only use the older platform as a compile target) then the initial cross-compile will be able to produce the binaries. If the older system can't support the LLVM toolchain memory wise or otherwise then it's not really a problem either. https://lld.llvm.org/ https://lld.llvm.org/
- jupp0r 7y agoYou only need a C++ compiler to build llvm-libc itself. You do not need a C++ compiler to use it in your C program.
- jfkebwjsbx 7y agoWhy? libc is just an interface, you can implement it however you want.
- geraldcombs 7y agoMicrosoft did the same thing for the Universal CRT. https://devblogs.microsoft.com/cppblog/the-great-c-runtime-crt-refactoring/ https://devblogs.microsoft.com/cppblog/the-great-c-runtime-c...
- jfkebwjsbx 7y agoThis great news, thanks a lot!