You can also compile Lisp code in an editor buffer in much the same way that you can evaluate it.
Choose Buffers > Compile to compile all the code in the current buffer.
Choose Expression > Compile Region to compile the Lisp code in the current region.
Choose Definitions > Compile to compile the current definition.
During compilation, the Editor tool temporarily displays compiler output in the Output tab. Once compilation has finished, press
Space
to display the current buffer once again. You can view the output at any time by clicking the Output tab of the Editor.
To compile the file associated with the current buffer, choose File > Compile . To compile multiple files associated with buffers, select them in the buffers view and choose File > Compile . If there is not a current buffer, the menu command File > Compile... is available, which prompts for a file to compile.
Note: this command calls the Common Lisp function
compile-file
; it creates the fasl file but does not load it. You can use
File > Load
to later load the fasl.
To compile a file (or files) and load the resulting fasl file(s) with a single command, choose File > Compile and Load . If there is not a current buffer, the menu command File > Compile and Load... is available.