[cfe-dev] c libraries implementation

Yaron Keren yaron.keren at gmail.com
Fri Oct 11 13:59:19 PDT 2013


Another interesting option for C library for clang toolchain on Windows
is mingw-w64-crt

https://github.com/kinke/mingw-w64-crt

Tailored light-weight MinGW-w64 C Runtime (on top of Microsoft's Visual C
Runtime) to be built by Clang on Win64 and linked by Microsoft's linker.

It covers most of the C99 functionality missing in Microsoft's runtime
(otherwise implemented in virtually all other C runtimes) and therefore
simplifies code portability while allowing you to use common Windows
compilers (MS, Intel etc.) and linkers instead of having to rely on the
MinGW-w64 GCC eco-system.

Clang handles GCC-style C code very well and at the same time is able to
output Windows COFF objects which may then be fed to the MS linker. So we
use Clang to build a trimmed-down version of the MinGW-w64 runtime library
and are then free to use it with all other MS-compatible compilers (e.g.,
the D compilers LDC and DMD on Win64). For example, we get back x87
floating-point (80 bits) support.


2013/10/11 Richard Pennington <rich at pennware.com>

> On 10/10/2013 01:30 PM, Yaron Keren wrote:
>
>> FreeBSD has lots of good code.
>> MUSL http://www.musl-libc.org/ is another library with BSD/MIT license.
>> MingW has Windows specific code usually in the public domain.
>>
>>  [snip]
> I'm using musl in my ELLCC project (http://ellcc.org). I'm using it as
> the Linux C library for arm, armeb, i386, microblaze, mips, mipsel, ppc,
> and x86_64. I highly recommend musl: Very nice clean code.
> Other libraries my tools use are libcxx, libcxxabi, compiler-rt, and I'm
> currently porting libunwind to complete full C and C++ support.
>
> -Rich
>
> ______________________________**_________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/cfe-dev<http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131011/dfd5beab/attachment.html>


More information about the cfe-dev mailing list