Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse 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: <20240624160941.0000646a@yahoo.com> <20240624181006.00003b94@yahoo.com> <20240625113616.000075e0@yahoo.com> <87ed8jnbmf.fsf@bsb.me.uk> <867ceadtih.fsf@linuxsc.com> <20240701200924.00003d9a@yahoo.com> <87zfr0wzpt.fsf@nosuchdomain.example.com> 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 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.