Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: A thought of C
Date: Tue, 21 Apr 2026 21:12:27 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <86eck763bo.fsf@linuxsc.com>
References: <3a3462bdd72c4ed9d392a78b7d369a7b5ccc3b04.camel@gmail.com> <10rtdpd$2g1i0$1@dont-email.me> <10rth24$2h2ls$1@dont-email.me> <10rtnud$2jfm5$1@dont-email.me> <10s01e1$384ct$1@dont-email.me> <10s06q2$39rhn$1@dont-email.me> <10s2a2u$3t0f5$1@dont-email.me> <10s2fhc$3ug5h$1@dont-email.me> <10s2h5f$3uctl$1@dont-email.me> <10s2oq0$19am$1@dont-email.me> <10s2tfe$2lvm$1@dont-email.me> <10s34f6$542f$1@dont-email.me> <10s3akj$7ajg$1@dont-email.me> <10s3otn$bk6v$1@dont-email.me> <10s4gtb$grfo$1@dont-email.me> <10s53k2$mlh7$1@dont-email.me> <10s5ou0$tq3a$1@kst.eternal-september.org> <10s61e6$vu54$2@dont-email.me> <10s7asn$1b41l$1@dont-email.me> <10s7m2s$1epfv$1@dont-email.me> <20260421155535.00007852@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Wed, 22 Apr 2026 04:12:27 +0000 (UTC)
Injection-Info: dont-email.me; posting-host="99049ae40d76034458eb7791fd827e8a"; logging-data="2085314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19G4+uJoGOn7AuhmlufBmUUt/1XDehZ6Tc="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:JTbvKyZhp3vzwVlbB8zEFQZSDXU= sha1:Q14n3ckIjTYfyF8JrKi6rKOTghM=
Xref: csiph.com comp.lang.c:397778
Michael S writes:
> On Tue, 21 Apr 2026 12:12:28 +0100
> Bart wrote:
>
>> Note 2: I believe these figures are suspect because the requisite
>> number of calls are not done.
>
> I don't see anything suspect in the -O1 code generated by gcc 14.2.0
>
> Source:
> unsigned long long fib(unsigned long long n)
> {
> if (n < 2)
> return 1;
> return fib(n-1)+fib(n-2);
> }
Tsk, tsk. fibonacci(0) is 0.