# Using libgccjit? _2025 September_ The installed size of libgccjit varies from 18 MB (armhf) to 53 MB (riscv64), with 37 MB for amd64. That's quite large. I wonder how much it could be stripped down if you linked to it statically and didn't use all parts of it? If I did use it to implement Xisp, I suppose I could offer the choice of generating binaries that don't actually link to the full Xisp runtime. So, the final situation could be as follows, for example: - The "meat" of Xisp would be a .so whose size is in the order of tens of MBs. - A tiny wrapper executable linked to this .so would be the entry point to both an AOT compiler and a REPL for Xisp. - Fully dynamic "lisp machine" applications (in the spirit of Emacs) that are both written in Xisp and support dynamic Xisp evaluation would have this .so as a runtime dependency, or need pretty much all of it to be compiled in. - However, the Xisp AOT compiler could also output binaries (dynlibs and executables) that don't actually have xisp.so as a runtime dependency. What if someone just wants to use a tiny script written in Xisp? If you want to use a tiny script written in Perl, Python, etc. you still need the entire thing, so maybe it'd be acceptable for such scripts to have full Xisp package as a runtime dependency. Alternatively, Xisp could be split into a number of dynlibs that implement different parts of it: xisp-gc.so, xisp-parser.so, xisp-intrpr.so, xisp-comp.so, and so on, where xisp-comp.so would probably be the largest. There could be a "Xisp interpreter" package that doesn't depend on that one. Alternatively #2, there could be a XispScript language that consists of a strict subset of Xisp (e.g. no static typing, no eval) and an interpreter for this language could simply be a program that happens to be written in Xisp but doesn't depend on the full Xisp .so since it doesn't use the native compiler. However, what if someone wants to write a program that *includes* a Xisp interpreter... I think a combination of the two above ideas would be best: XispScript would be implemented by a library written in Xisp, xispscript.so, which can be linked to if you want to write a program that can execute XispScript at runtime, and also the XispScript package would come with a little wrapper executable that invokes xispscript.so to interpret scripts with a #!/usr/bin/xispscript shebang or such.