Dan Starr <dvstarr@...> writes:
> I am thinking of getting a new Intel-based Macintosh, but will need
> a Common Lisp. SBCL looks like the most likely candidate, because
> afterall, SBCL already compiles into the Intel instruction-set.
>
> Would this work: (1) load an SBCL binary for i386 on the new Mac,
> (2) recompile with 0.9.7? Suspect this would take some tweaking of
> the configure files.
>
> Or would this work: (1) load SBCL 0.9.0 binary on my old Mac, (2)
> cross-compile 0.9.7 into the Intel instruction set, (3) save a
> binary distribution file?
If I understand you rightly, neither of these would work as of right
now, because no work has yet been done on the Operating System support
needed by SBCL. (Each OS/Architecture combination has its
idiosyncratic ways of laying out machine information in signal
contexts, of dealing with floating point exceptions, and one or two
other things; the source files in src/runtime -- linux-os.c and
ppc-linux-os.c, for instance -- should give you some clues.) Having
said that, if the bindings to OS support were needed, then your second
plan is roughly how to cross-compile; there are some more details at
the internals wiki, at <http://sbcl-internals.cliki.net/Build> (though
some small details have probably changed since that page was last
updated).
> Thirdly, with your encouragement, I would consider trying it myself,
> though I anticipate volleys of e-mail of error messages, etc.,
> because I am not an accomplished Unix freak. I learn of it what I
> must learn when I need to.
Please do give it a try, if I haven't managed to frighten you off yet.
I'd guess that the OS support files you need will look a bit like a
mishmash between ppc-darwin-os.c and x86-linux-os.c, but I actually
know no details of Apple's support.
Cheers,
Christophe
|