Here's some more email to keep my list activity up ...
I'm trying to use ecl_min to help me with the MAKE-LOAD-FORM issue, but
am not having as much success as I'd like. It starts up fine and
> (load "bare")
work fine, but when I try to (require :asdf) I get the error: "Wrong
number of arguments passed to function VECTOR-PUSH-EXTEND." Trying to
load asdf.fas has the same result.
Also, I was trying to set up a script that would run ecl_min and set
everything up, but couldn't find a way. -eval doesn't seem to work on
$ ecl_min < setup.lsp
did load setup.lsp, but then quit, rather than leaving me at the
None of this is necessary for my little test case, but I would like to
have the ability to set this up for quicker debugging in the future.
On 4 May 2006, at 17:41, Greg Pfeil wrote:
> work fine, but when I try to (require :asdf) I get the error: "Wrong
> number of arguments passed to function VECTOR-PUSH-EXTEND." Trying to
> load asdf.fas has the same result.
Ok, this seems like it's just a problem with ecl_min not being able to
load fasls. This maybe hinders my debugging a bit, since the problem is
restricted to loading compiled files.
From: Juan Jose Garcia Ripoll <lisp@ar...> - 2006-05-05 15:38:09
You have to understand the following about ecl_min:
1) It only contains a minimal set of lisp functions coded in C. Thus, it
lacks many of the C symbols of lisp compiled functions which are used in
compiled files. For instance cl_find, cl_find_if_not, etc.
2) It also has no toplevel nor argument parsing functions, since these
are coded in lisp.
I think one can solve both problems:
1) Set up a global flag that prevents inlining function calls. This
might also be automatically done when the optimization optim DEBUG = 3.
2) Tweak cinit.d so that it loads all files listed in the argument list.
This would be nice as we could replace the line
echo '(load "compile")' | ./ecl_min
Answers are left as an exercise for the reader :-) Not, really, at least
2) should be easy and I would include any of these features in the
distribution if you provide them.
On 5 May 2006, at 8:37, Juan Jose Garcia Ripoll wrote:
> 2) Tweak cinit.d so that it loads all files listed in the argument
> This would be nice as we could replace the line
> echo '(load "compile")' | ./ecl_min
> with simply
> ./ecl_min "compile"
So, I started to work on #2, since it should be easy, as you said.
Well, it was easier than I thought, as the functionality is already
there. Seems to work, and I didn't have to change anything. Thanks.
The line in the makefile currently looks like:
./ecl_min < compile.lsp;
which I guess could be replaced by
but then compile.lsp needs to end with (quit), since ECL won't receive
a ^D. It might not be worthwhile, but I've attached a patch with those