emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs' C: static inline considered useless nowadays?


From: Stefan Monnier
Subject: Re: Emacs' C: static inline considered useless nowadays?
Date: Sun, 16 Oct 2022 20:43:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Matt Armstrong [2022-10-16 15:08:51] wrote:
> I've spent the last few decades coding with an undersanding that
> "inline" is about linkage and allows one to place code in header files
> so that it *may* be inlined, but that compilers long ago stopped using
> it as a meaningful inlining hint.  But this is mostly colored by how gcc
> and clang behave with C++, and not much else.

I believe what you say does hold true for "optimized builds".
I'd be interested to know if it's true for lower levels of optimization
as well.


        Stefan "compiling with -Og"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]