Deutsch   English   Français   Italiano  
<20241211162608.0000107d@yahoo.com>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Michael S <already5chosen@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: question about linker
Date: Wed, 11 Dec 2024 16:26:08 +0200
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <20241211162608.0000107d@yahoo.com>
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>
	<vjb8e9$1973q$1@paganini.bofh.team>
	<20241211111856.00005d14@yahoo.com>
	<vjbunl$1h46m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Dec 2024 15:25:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="59e774ba1c9fe63954786401ab11fa39";
	logging-data="1052197"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+DC9H3A8qxnJCp2yIgovJUGaFFKhpUTZ4="
Cancel-Lock: sha1:I9/BGwQieRiYCAV1G4wClDRwlj0=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
Bytes: 4421

On Wed, 11 Dec 2024 11:57:40 +0000
bart <bc@freeuk.com> wrote:

> On 11/12/2024 09:18, Michael S wrote:
> > On Wed, 11 Dec 2024 05:37:15 -0000 (UTC)
> > antispam@fricas.org (Waldek Hebisch) wrote:  
> 
> >> 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.  
> > 
> > For some definition of "serious".
> >   
> >> 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.
> >>  
> > 
> > I would think that the main reason for David Brown's absence of
> > interest in tcc is simply because tcc do not have back ends for
> > targets that he cares about.
> > In particular, Arm port appears to be abandoned in 2003, so quite
> > likely tcc can't generate code that runs on MCUs with ARMv7-M
> > architecture that happens to be released first in the same year and
> > officially named in the 2004.  
> 
> I remember running TCC on both RPi1 (2012) and RPi4 (2019). That
> would be ARM32 (some version of ARMv7 I guess; I find ARM model
> numbers bewildering).
> 
> It's possible I also tried TCC in the ARM64 mode of RPi4.
> 

ARMv7-AR architecture supports both fixed-width encoding (what's
named A32 in ARMv8 docs) and variable-width encoding (T32 in ARMv8
docs) a.k.a. Thumb-2
ARMv7-M on the other hand supports only variable-width encoding.

RPIi1 is ARM11 which is  architecturally ARMv6 (i.e. before T32).
RPi4 is Cortex-A72 which is  architecturally ARMv8-A.
Both of them can run fixed-width 32-bit encoded (A32) code fine. 

Overwhelming majority of microcontrollers are based on various Cortex-M
cores (Cortex-M4 is most popular by far) and they can't run such code.

> 
> So it sounds rather unlikely that TCC doesn't support ARM.
> 

But at least from the little docs that I was able to locate it looks
likely that it does not support Thumb-2.