Search code examples
emacslispcommon-lispslime

Running a Compiled Lisp Program


I'm guessing this is not rocket science, but how can I run a compiled lisp file? I am using emacs and SLIME under Windows. From the SLIME menu it is straightforward to compile the file and, once it does, it spits out a wx64fsl in the same directory as my lisp source. How do I load/run this file? I've been running files by eval-ing whole blocks of code and I've been told that running the compiled version performs far better.


Solution

  • From the SLIME REPL:

    1. ,cd to change directories into the one with your lisp file
    2. (load (compile "filename.lisp"))

    OR from the SLIME Menu:

    SLIME > Compilation > Compile \ Load

    So basically it was embarrassingly easy and there was even a menu option for it, I was just initially confused by the nomenclature. Hopefully this will help someone in the future.