[armedbear-devel] compiling lisp files outside Java and calling it after with abcl

Alessio Stalla alessiostalla at gmail.com
Wed Feb 29 11:17:31 UTC 2012


On Wed, Feb 29, 2012 at 10:42 AM, santi <scarbonell at ono.com> wrote:
> Hi,
>
> Thanks for your help.
>
> Because I've a lot of problems of java memory and Truncated class files, my
> intention is try to compile in the same platform with ABCL, but only
> compile, not to load from ABCL a file and then compile all files. If there
> are some way to compile all files with abcl and package... (I don't know if
> exists).

First, if you have memory issues, you should try increasing the
maximum heap size of your JVM. The 64M default is increasingly
limiting for Java applications, and while Lisp apps tend to waste less
memory than Java apps with tons of frameworks, I myself raised the
heap size to 256M just to be sure.

That said, you can compile and not load the files on abcl. It depends
on what you're using to compile/load, with asdf it's a matter of using
'compile-op rather than 'load-op. But, the files you'll obtain will
only be loadable by abcl anyway, as Mark explains in his post on the
abcl blog. Still, splitting the compilation and the loading in two
different sessions might help with memory issues if you really can't
give more memory to the JVM.

Alessio




More information about the armedbear-devel mailing list