emacs-devel
[Top][All Lists]
Advanced

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

Re: Enabling native compilation by default when libgccjit is present


From: Eli Zaretskii
Subject: Re: Enabling native compilation by default when libgccjit is present
Date: Mon, 06 Dec 2021 14:59:05 +0200

> From: Richard Stallman <rms@gnu.org>
> Date: Sun, 05 Dec 2021 23:33:54 -0500
> Cc: emacs-devel@gnu.org
> 
>   > The reason for this is not hard to understand for anyone with a little
>   > bit of knowledge about binary code optimization. For instance, if your
>   > Elisp code consists on invoking opaque C primitives, the gain of
>   > compiling it to machine instructions will be mostly irrelevant.
> 
> I wonder if this could be a guide towards doing native compilation
> only in the cases where it will provide a benefit.

I don't think this could fly in practice, because I see no way of
predicting when it will provide a benefit.  The same primitives could
be combined into very different Lisp programs, and no useful program
consists only of calls to primitives, there's always some Lisp
involved.



reply via email to

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