[cfe-dev] c libraries implementation
Yaron Keren
yaron.keren at gmail.com
Thu Oct 10 12:38:12 PDT 2013
Do you mean when clang is being built or when clang compiles something?
The first is in the build environment.
The second depends upon the target, there are functions
in InitHeaderSearch.cpp that try to locate the include dirs. The libraries
come with the linker and linker switches since clang doesn't link by itself.
2013/10/10 James Gregurich <bayoubengal at mac.com>
> Out of curiosity, how does clang determine what standard C libraries and
> headers to use during a build? Is that documented anywhere? I did a quick
> google search to see I saw that mechanism discussed, I don't see a good
> document coming up on the topic.
>
> -James
>
>
> On Oct 10, 2013, at 11:30 AM, Yaron Keren <yaron.keren at gmail.com> 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.
>
>
>
> 2013/10/10 David Chisnall <David.Chisnall at cl.cam.ac.uk>
>
>> On 10 Oct 2013, at 17:03, Constantinos <conon246 at gmail.com> wrote:
>>
>> > Thanks, are any plans for a libc implementation as a llvm sub
>> project? if any i will be glad to help on my free time.
>>
>> There are existing open source, permissively licensed, libc
>> implementations. Derivatives of FreeBSD libc are used on Darwin (iOS / OS
>> X), some OpenSolaris derviatives and Android. NetBSD and OpenBSD also have
>> their own libc implementations that occasionally share code.
>>
>> We welcome contributors to FreeBSD libc, if you want to work on a C
>> standard library implementation...
>>
>> David
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> 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/20131010/94b16b50/attachment.html>
More information about the cfe-dev
mailing list