Liste des Groupes | Revenir à cl c |
On Mon, 01 Jul 2024 14:48:30 -0700Tcc is partly self-contained in that it turns .c files into binaries (.exe and .dll) without any external tools.
Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
Michael S <already5chosen@yahoo.com> writes:I think, bart said that tcc is self-contained. I interpreted is like
[...]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.
>
containing C RTL. Obviously, my interpretation of bart's statement was
wrong and in reality tcc relies on external RTL.
_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.tcc is not advertised to support C17. According toI didn't say that they advertise C17. However in practice they do
<https://bellard.org/tcc/>, "TCC is heading torward full ISOC99
compliance."
>
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.
Les messages affichés proviennent d'usenet.