Re: tcc - first impression. Was: Baby X is bor nagain

Liste des GroupesRevenir à cl c  
Sujet : Re: tcc - first impression. Was: Baby X is bor nagain
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.c
Date : 02. Jul 2024, 12:22:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v60nuc$1k2n3$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Mozilla Thunderbird
On 02/07/2024 09:54, Michael S wrote:
On Mon, 01 Jul 2024 14:48:30 -0700
Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
 
Michael S <already5chosen@yahoo.com> writes:
[...]
I tried tcc too.
>
1. It is easy to download. It does not need installation apart from
unzip.
>
So you're on Windows.
>
[...]
>
4. In this particular project I encountered few inconvenient
incompatibilities:
4.1. no support for %zd and %zu. May be, Linux version is better in
that regard?
>
%zd and %zu are supported by the runtime library, not by the compiler.
It's likely that tcc is configured to use something like msvcrt.dll,
which typically doesn't support C99 features.
>
 I think, bart said that tcc is self-contained. I interpreted is like
containing C RTL. Obviously, my interpretation of bart's statement was
wrong and in reality tcc relies on external RTL.
Tcc is partly self-contained in that it turns .c files into binaries (.exe and .dll) without any external tools.
tcc itself exists as either one .exe file or .exe/.dll (to allow embedding). It also has a set of system headers. Plus it has some .a libraries. About 100 files altogether.
My older 'bcc' compiler was a lot more self-contained in that a single .exe could generate .exe/.dll, and included its system headers. One file altogether (the newer 'mcc' is 2-3 files; it uses a discrete assembler, and windows.h is a separate file).
Both make use of msvcrt.dll. I don't consider it a dependency since it has always been part of Windows. (I first starting using it in 1990s, from my other language, before I knew much about C, as it had a simpler file API than Windows.)
Lots of other applications use it too. Including older gcc binaries and applications compiled with those.
On Windows 11, probably 10 too, msvcrt.dll's printf routines support %zu, and so does Tcc.

tcc is not advertised to support C17.  According to
<https://bellard.org/tcc/>, "TCC is heading torward full ISOC99
compliance."
>
 I didn't say that they advertise C17. However in practice they do
support few C11/C17 features. So why not _Alignof() ?
Considering that tcc already supports old Gnu __alignof__ extension,
adding support for _Alignof() would be very easy for them.
_Generics is a very easy feature to implement (I did it in about 40 lines). Probably tcc could have it too with little trouble. Maybe somebody thought they should stick to C99 compliance rather than pick and choose the easier features of later standards.

Date Sujet#  Auteur
1 Jul 24 * tcc - first impression. Was: Baby X is bor nagain22Michael S
1 Jul 24 +- Re: tcc - first impression. Was: Baby X is bor nagain1Tim Rentsch
1 Jul 24 +* Re: tcc - first impression. Was: Baby X is bor nagain13Keith Thompson
1 Jul 24 i+- Re: tcc - first impression. Was: Baby X is bor nagain1Keith Thompson
2 Jul 24 i+* Re: tcc - first impression. Was: Baby X is bor nagain9Michael S
2 Jul 24 ii+* Re: tcc - first impression. Was: Baby X is bor nagain6bart
2 Jul 24 iii+* Re: tcc - first impression. Was: Baby X is bor nagain4Michael S
2 Jul 24 iiii+* Re: tcc - first impression. Was: Baby X is bor nagain2bart
2 Jul 24 iiiii`- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
3 Jul 24 iiii`- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
2 Jul 24 iii`- Re: tcc - first impression. Was: Baby X is bor nagain1Tim Rentsch
2 Jul 24 ii+- Re: tcc - first impression. Was: Baby X is bor nagain1Tim Rentsch
2 Jul 24 ii`- Re: tcc - first impression. Was: Baby X is bor nagain1James Kuyper
2 Jul 24 i`* Re: tcc - first impression. Was: Baby X is bor nagain2Malcolm McLean
2 Jul 24 i `- Re: tcc - first impression. Was: Baby X is bor nagain1Ben Bacarisse
2 Jul 24 +* Re: tcc - first impression. Was: Baby X is bor nagain6Michael S
2 Jul 24 i+* Re: tcc - first impression. Was: Baby X is bor nagain4Ben Bacarisse
2 Jul 24 ii`* Re: tcc - first impression. Was: Baby X is bor nagain3Michael S
2 Jul 24 ii `* Re: tcc - first impression. Was: Baby X is bor nagain2Ben Bacarisse
2 Jul 24 ii  `- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
3 Jul 24 i`- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S
3 Jul 24 `- Re: tcc - first impression. Was: Baby X is bor nagain1Michael S

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal