4

Say, there is some function and if I do a describe-function on it it says:

x is an interactive compiled Lisp function in x.el

Can I tell somehow if this loaded compiled code is byte compiled or natively compiled?

2 Answers 2

5

In emacs-28.1, describe-function gives this information:

switch-to-buffer is an interactive native compiled Lisp function in ‘window.el’.

2
  • Thanks, I tried font-lock-mode, but that simply says 'interactive compiled Lisp function'. switch-to-buffer says native, though, for me too. I use the precompiled windows emacs binary, and I thought all lisp code files in the distribution is native compiled, but apparently this is not the case. I wonder why.
    – Tom
    Commented Apr 6, 2022 at 21:03
  • font-lock-mode is native compiled for me (emacs built from source on linux). Commented Apr 6, 2022 at 21:21
5

Variable system-configuration-features will contain NATIVE_COMP if your Emacs has been compiled with native compilation support.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.