This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is libc built by gcc?


>>> Is libc built by gcc?
>>
>> Maybe you could elaborate as to what you're *actually* trying to do.
>>
>> By process of deduction, if libc is written in C then it has to be
>> compiled by *some* C compiler.  On linux systems, the libc is the GNU C
>> library (glibc), and glibc is written in C, and gcc is the C compiler,
>> thus libc is compiled by gcc.
>>
>> But that is just one specific instance, it is not a general rule.  What
>> you seem to be asking is whether libc is part of gcc, and the answer to
>> that is no, it's completely separate.  gcc does not contain a C library
>> because gcc is used with too many various platforms to make this
>> maintainable.

But suppose I want to rebuild both GCC and GLIBC ( on Linux, either locally as user or globally as root ): I've read GLIBC docs, and it _seems_ like "mission impossible", to replace existing LIBC in the system - too many things (like ld) depend on it.

Am I mistaken? :)

Thanks,
Dima.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]