Path: csiph.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: question about linker Date: Wed, 04 Dec 2024 17:29:46 -0800 Organization: A noiseless patient Spider Lines: 34 Message-ID: <86y10ulxx1.fsf@linuxsc.com> References: <87plmfu2ub.fsf@nosuchdomain.example.com> <87frnbt9jn.fsf@nosuchdomain.example.com> <877c8nt255.fsf@nosuchdomain.example.com> <20241129142810.00007920@yahoo.com> <20241129161517.000010b8@yahoo.com> <87ldwx10gv.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 05 Dec 2024 02:29:47 +0100 (CET) Injection-Info: dont-email.me; posting-host="8a263e9b473304506e7d265d71d931f0"; logging-data="1278201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ONrPv/cwr+VD+0dEB2J+BkS6XpZf1Hsw=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:sBPB0SyoZGtANrj7Sc2Zjj0XHYE= sha1:X2LA97ZynsQtbFUtvqtAEUWXcjk= Xref: csiph.com comp.lang.c:389385 Janis Papanagnou writes: > On 03.12.2024 16:24, David Brown wrote: > >> On 03/12/2024 13:34, Bart wrote: >> >>> [...] >> >> Of course lots of C programmers have never read the standards. >> But they generally know that they don't know these details, and >> don't try to pretend that the language details that they don't >> know are confusing. They simply get on with the job of writing >> clear C code as best they can. > > I feel an urge to point out that the C standard is not necessary > to understand concepts that can be read about in textbooks That assumes that such textbooks exist, that they can be identified, located, and obtained without too much difficulty, and don't cost too much to get. The C standard is easily located and obtained, and costs nothing to download (for a draft that is virtually identical to the actual standard). > or inferred (or just tried out, if the available sources are > unclear about some detail). Two problems with that suggestion. One, trying to figure out what the rules are by experimentation is sometimes difficult and unreliable. Two, some details, such as what constructs result in undefined behavior, simply cannot be determined by means of experimentation. Also, the idea that one can figure out the rules of the C language by looking at compiler sources is just laughable.