[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Emacs Lisp has a compiler that translates functions written in Lisp into a special representation called byte-code that can be executed more efficiently. The compiler replaces Lisp function definitions with byte-code. When a byte-code function is called, its definition is evaluated by the byte-code interpreter.
Because the byte-compiled code is evaluated by the byte-code interpreter, instead of being executed directly by the machine's hardware (as true compiled code is), byte-code is completely transportable from machine to machine without recompilation. It is not, however, as fast as true compiled code.
Compiling a Lisp file with the Emacs byte compiler always reads the file as multibyte text, even if Emacs was started with ‘--unibyte’, unless the file specifies otherwise. This is so that compilation gives results compatible with running the same file without compilation. Voir la section Loading Non-ASCII Characters.
In general, any version of Emacs can run byte-compiled code produced by recent earlier versions of Emacs, but the reverse is not true.
If you do not want a Lisp file to be compiled, ever, put a file-local
variable binding for no-byte-compile
into it, like this:
;; -*-no-byte-compile: t; -*- |
Voir la section Debugging Problems in Compilation, for how to investigate errors occurring in byte compilation.
16.1 Performance of Byte-Compiled Code | An example of speedup from byte compilation. | |
16.2 The Compilation Functions | Byte compilation functions. | |
16.3 Documentation Strings and Compilation | Dynamic loading of documentation strings. | |
16.4 Dynamic Loading of Individual Functions | Dynamic loading of individual functions. | |
16.5 Evaluation During Compilation | Code to be evaluated when you compile. | |
16.6 Compiler Errors | Handling compiler error messages. | |
16.7 Byte-Code Function Objects | The data type used for byte-compiled functions. | |
16.8 Disassembled Byte-Code | Disassembling byte-code; how to read byte-code. |
[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.