In Emacs, what is byte-compilation?
Byte-compilation is a function of Emacs that transforms Lisp into byte-code. Byte-code, run by an interpreter in Emacs, can be executed more quickly than Lisp. However, because it isn't written in machine code, it can be directly transferred between machines without having to be recompiled. Functions byte-compiled by earlier versions of Emacs can be correctly interpreted by Emacs, but the opposite is not necessarily true.
To byte-compile a file, launch Emacs and enter:
M-x byte-compile-file RET [file to byte-compile]
[file to byte-compile] with the name of the
file you want to compile. The compiler will take the file, which
should end in the extension
.el , and create a
byte-code version with the extension
Note: For more information on how to enter the command above, see In Emacs, how are keystrokes denoted?
At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?
Last modified on May 13, 2009.