Deutsch   English   Français   Italiano  
<vjb8e9$1973q$1@paganini.bofh.team>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: comp.lang.c
Subject: Re: question about linker
Date: Wed, 11 Dec 2024 05:37:15 -0000 (UTC)
Organization: To protect and to server
Message-ID: <vjb8e9$1973q$1@paganini.bofh.team>
References: <vi54e9$3ie0o$1@dont-email.me>   <87frnbt9jn.fsf@nosuchdomain.example.com> <viaqh0$nm7q$1@dont-email.me> <877c8nt255.fsf@nosuchdomain.example.com> <viasv4$nm7q$2@dont-email.me> <vibr1l$vvjf$1@dont-email.me> <vic73f$1205f$1@dont-email.me> <20241129142810.00007920@yahoo.com> <vicfra$13nl4$1@dont-email.me> <20241129161517.000010b8@yahoo.com> <vicque$15ium$2@dont-email.me> <vid110$16hte$1@dont-email.me> <vifcll$1q9rj$1@dont-email.me> <vifiib$1s07p$1@dont-email.me> <viht27$2hgg1$3@dont-email.me>
Injection-Date: Wed, 11 Dec 2024 05:37:15 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="1350778"; posting-host="WwiNTD3IIceGeoS5hCc4+A.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.9.3
Bytes: 2945
Lines: 34

David Brown <david.brown@hesbynett.no> wrote:
> On 30/11/2024 18:38, Bart wrote:
>> It will at least work with more compiles.
>> 
> 
> And why would that matter?  No actual developer would care if their code 
> can be compiled by your little toy compiler, or even more complete 
> little tools like tcc.  Code needs to work on the compilers that are 
> suitable for the job - compatibility with anything else would just be a 
> waste of effort and missing out on useful features that makes the code 
> better.

You are exagerating and that does not help communication.  In this
group there were at least one serious poster claiming to write code
depending only on features from older C standard.  People like this
presumably would care if some "toy" compiler discoverd non-compliance.
Concerning tcc, they have explicit endorsment from gawk developer:
he likes compile speed and says that gawk compiles fine using tcc.

In may coding I use gcc extentions when I feel that there is
substantial gain.  But for significant part of my code I prefer
to portablility, and that may include avoiding features not
supported by lesser compilers.  I the past tcc was not able
to compile code which I consider rather ordinary C, and due
to this and lack of support for my main target I did not use
tcc.  But tcc improved, ATM I do not know if it is good enough
for me, but it passed initial tests, so I have no reason to
disregard it.

BTW: IME "exotic" tools and targets help with finding bugs.
So even if you do not normally need to compile with some
compiler it makes sense to check if it works.

-- 
                              Waldek Hebisch