Deutsch   English   Français   Italiano  
<87h6d7luq9.fsf@bsb.me.uk>

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: Ben Bacarisse <ben@bsb.me.uk>
Newsgroups: comp.lang.c
Subject: Re: tcc - first impression. Was: Baby X is bor nagain
Date: Tue, 02 Jul 2024 15:43:58 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <87h6d7luq9.fsf@bsb.me.uk>
References: <v494f9$von8$1@dont-email.me> <v54se1$3bqsk$1@dont-email.me>
	<20240624160941.0000646a@yahoo.com> <v5bu5r$va3a$1@dont-email.me>
	<20240624181006.00003b94@yahoo.com> <v5c86d$11ac7$1@dont-email.me>
	<JEheO.108086$ED9b.74955@fx11.iad> <v5cblg$11q0j$1@dont-email.me>
	<gEieO.108089$ED9b.25598@fx11.iad> <20240625113616.000075e0@yahoo.com>
	<mUzeO.141609$Cqra.55051@fx10.iad> <v5elql$1jmii$1@dont-email.me>
	<m3BeO.24907$Gurd.16179@fx34.iad> <v5empd$1jndv$2@dont-email.me>
	<v5eph4$1k6a9$1@dont-email.me> <87ed8jnbmf.fsf@bsb.me.uk>
	<v5jhls$2m7np$1@dont-email.me> <867ceadtih.fsf@linuxsc.com>
	<20240701200924.00003d9a@yahoo.com>
	<87zfr0wzpt.fsf@nosuchdomain.example.com>
	<v60hku$1j1qq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 02 Jul 2024 16:43:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="b266bd3b753af90a68a6f95ab3ce5341";
	logging-data="1774095"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19hkyqtDT/UBuvnoffcorCLYX1HtkvjsKk="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:upFBrnWZflBhflH/lxFRNf79eII=
	sha1:46QkdG4pb4DqvknTb9UX2dpMwp8=
X-BSB-Auth: 1.d9926a56d86bca30f5c0.20240702154358BST.87h6d7luq9.fsf@bsb.me.uk
Bytes: 2364

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> On 01/07/2024 22:48, Keith Thompson wrote:
....
>> %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.

No, code does not break if you use size_t.

> 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.

size_t was widely used prior to C99 and the introduction of %zu.

-- 
Ben.