Sujet : Re: The joy of FORTRAN
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : alt.folklore.computers comp.os.linux.miscDate : 02. Mar 2025, 14:41:06
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwvbjujmtxp.fsf@LkoBDZeT.terraraq.uk>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
The Natural Philosopher <
tnp@invalid.invalid> writes:
And in fact these days with inline functions
>
if(x>y)
fubar(x,y,z);
else
rabuf (z,y,x);
>
Is even shorter and allows the program flow rather than the
implementation to be seen clearly.
>
I wonder if compilers actually inline functions that are only called
once.
Modern compilers will often inline functions that aren’t declared
inline, yes; I don’t know if “only called once” is a consideration. It’s
not implausible (possibly in a more general form, e.g. “will inlining
all calls take more or less space overall?”)
-- https://www.greenend.org.uk/rjk/