Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bart Newsgroups: comp.lang.c Subject: Re: else ladders practice Date: Mon, 25 Nov 2024 19:46:45 +0000 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <3deb64c5b0ee344acd9fbaea1002baf7302c1e8f@i2pn2.org> <87wmgsmme0.fsf@nosuchdomain.example.com> <87sergmhkc.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 25 Nov 2024 20:46:44 +0100 (CET) Injection-Info: dont-email.me; posting-host="c80a36c81a7479915291e305ba49d1d4"; logging-data="3123552"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yq+zgrO/Uo/XdPtb6cuLc" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:TChXpLAinX/LfEVsEM8yxd6akOg= In-Reply-To: Content-Language: en-GB Bytes: 2427 On 25/11/2024 17:30, Scott Lurndal wrote: > Bart writes: >> On 24/11/2024 21:45, Keith Thompson wrote: > >>>> A more useful installation would of course need more standard headers, >>>> an assembler, linker, and whatever .a files are needed to provide the >>>> standard library. >>> >>> Sure, those are all part of a C implementation, though they're not part >>> of gcc. >> >> >> This seems to be a thing with Linux, where a big chunk of a C >> implementation is provided by the OS. > > Actually, no. The OS provides the dynamic linker and some os-specific > header files. Pretty much everything else comes from various > third-party packages. > >> >> That is, standard headers, libraries, possibly even 'as' and 'ld' >> utilities. > > None of those come from the OS. So, if I install 5 distinct C compilers on Linux, will they each come with their own stdio.h, or will they use the common one in /usr/include?