tromey / el-compilador

An SSA-based compiler for Emacs Lisp
206 stars 10 forks source link

Will I be able to make executables with this? #1

Open vapniks opened 8 years ago

vapniks commented 8 years ago

Is it possible to make standalone executables with this? That would open up a whole lot of possibilities..

tromey commented 8 years ago

I hadn't really planned to do that but I'm not opposed to it.

larsbrinkhoff commented 8 years ago

In a similar-ish vein, it would be possible to have the C backend make shared objects, which could then be loaded into Emacs 25.

tromey commented 8 years ago

Yeah, that's totally doable. Though I have a more radical idea, which is to use Emacs FFI to pull in gcc-jit and then lower the el-compilador IR to jitted code. Maybe going via C would be simpler, though; and the resulting shared object could be easily loaded using emacs-ffi; the main advantage being that the Emacs module API carries a considerable overhead.