[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes in GC and in pure space
From: |
Stefan Monnier |
Subject: |
Re: Changes in GC and in pure space |
Date: |
Wed, 04 Sep 2019 13:45:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> How portable is "INLINE" (and if it's portable enough, why do we use a
> macro for it)? If some platforms don't support it, and these macros
> become non-inline functions, those platforms will be punished by this
> kind of changes.
I'm not sure if replacing INLINE with nothing at all would lead to much
worse code. Obviously, in some cases it will, but the optimizer should
generally still inline them anyway.
> I FWIW, personally find the issue of confusion about macro argument
> evaluation to be a very weak one as justification to get rid of macros
> that needed approximately zero maintenance for many years.
I don't find it terribly compelling either, although I have been bitten
a few times. OTOH as functions, they tend to behave better in GDB.
So overall, I think it's good to use functions rather than macros where
both are applicable (just like in Elisp).
Stefan