Sujet : Re: tcc - first impression. Was: Baby X is bor nagain
De : malcolm.arthur.mclean (at) *nospam* gmail.com (Malcolm McLean)
Groupes : comp.lang.cDate : 02. Jul 2024, 10:35:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v60hku$1j1qq$2@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
User-Agent : Mozilla Thunderbird
On 01/07/2024 22:48, Keith Thompson 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.
But that's what you get if you use size_t. Code breaks.
Baby X doesn't expose any size_ts in its API, so code written for Baby X should work fine under tcc. Code written for other toolkits will fail if at any time you format a size_t for user display.
I'm thinking of adding bbx_strlen() to get rid of the irritating warning when Baby X programmer call strlen() on a string of a few characters. In Baby X it's haed to create a string whee the warning makes sense, because bbx_malloc() won't return more than INT_MAX bytes.
-- Check out my hobby project.http://malcolmmclean.github.io/babyxrc